Lines Matching refs:PureWindowsPath

33    can instantiate :class:`PureWindowsPath`.
102 it creates either a :class:`PurePosixPath` or a :class:`PureWindowsPath`)::
126 >>> PureWindowsPath('c:/Windows', 'd:bar')
127 PureWindowsPath('d:bar')
132 >>> PureWindowsPath('c:/Windows', '/Program Files')
133 PureWindowsPath('c:/Program Files')
166 .. class:: PureWindowsPath(*pathsegments)
171 >>> PureWindowsPath('c:/Program Files/')
172 PureWindowsPath('c:/Program Files')
189 >>> PureWindowsPath('foo') == PureWindowsPath('FOO')
191 >>> PureWindowsPath('FOO') in { PureWindowsPath('foo') }
193 >>> PureWindowsPath('C:') < PureWindowsPath('d:')
198 >>> PureWindowsPath('foo') == PurePosixPath('foo')
200 >>> PureWindowsPath('foo') < PurePosixPath('foo')
203 TypeError: '<' not supported between instances of 'PureWindowsPath' and 'PurePosixPath'
235 >>> p = PureWindowsPath('c:/Program Files')
264 >>> p = PureWindowsPath('c:/Program Files/PSF')
276 from pathlib import PurePosixPath, PureWindowsPath
284 >>> PureWindowsPath('c:/Program Files/').drive
286 >>> PureWindowsPath('/Program Files/').drive
293 >>> PureWindowsPath('//host/share/foo.txt').drive
300 >>> PureWindowsPath('c:/Program Files/').root
302 >>> PureWindowsPath('c:Program Files/').root
309 >>> PureWindowsPath('//host/share').root
316 >>> PureWindowsPath('c:/Program Files/').anchor
318 >>> PureWindowsPath('c:Program Files/').anchor
322 >>> PureWindowsPath('//host/share').anchor
331 >>> p = PureWindowsPath('c:/foo/bar/setup.py')
333 PureWindowsPath('c:/foo/bar')
335 PureWindowsPath('c:/foo')
337 PureWindowsPath('c:/')
379 >>> PureWindowsPath('//some/share/setup.py').name
381 >>> PureWindowsPath('//some/share').name
425 >>> p = PureWindowsPath('c:\\windows')
440 >>> p = PureWindowsPath('c:/Windows')
455 >>> PureWindowsPath('c:/a/b').is_absolute()
457 >>> PureWindowsPath('/a/b').is_absolute()
459 >>> PureWindowsPath('c:').is_absolute()
461 >>> PureWindowsPath('//some/share').is_absolute()
467 With :class:`PureWindowsPath`, return ``True`` if the path is considered
471 >>> PureWindowsPath('nul').is_reserved()
491 >>> PureWindowsPath('c:').joinpath('/Program Files')
492 PureWindowsPath('c:/Program Files')
520 >>> PureWindowsPath('b.py').match('*.PY')
547 >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
549 PureWindowsPath('c:/Downloads/setup.py')
550 >>> p = PureWindowsPath('c:/')
556 ValueError: PureWindowsPath('c:/') has an empty name
565 >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
567 PureWindowsPath('c:/Downloads/pathlib.tar.bz2')
568 >>> p = PureWindowsPath('README')
570 PureWindowsPath('README.txt')
571 >>> p = PureWindowsPath('README.txt')
573 PureWindowsPath('README')
609 A subclass of :class:`Path` and :class:`PureWindowsPath`, this class