/third_party/python/Lib/ |
D | imghdr.py | 3 from os import PathLike 15 if isinstance(file, (str, PathLike)):
|
D | compileall.py | 26 if quiet < 2 and isinstance(dir, os.PathLike): 157 if quiet < 2 and isinstance(fullname, os.PathLike):
|
D | zipapp.py | 39 if isinstance(archive, (str, os.PathLike)):
|
D | bz2.py | 80 if isinstance(filename, (str, bytes, os.PathLike)):
|
D | lzma.py | 117 if isinstance(filename, (str, bytes, os.PathLike)):
|
D | os.py | 1070 class PathLike(abc.ABC): class 1081 if cls is PathLike:
|
D | fileinput.py | 188 elif isinstance(files, os.PathLike):
|
D | configparser.py | 691 if isinstance(filenames, (str, bytes, os.PathLike)): 701 if isinstance(filename, os.PathLike):
|
D | gzip.py | 57 if isinstance(filename, (str, bytes, os.PathLike)):
|
D | tempfile.py | 92 if isinstance(arg, _os.PathLike):
|
D | subprocess.py | 1369 elif isinstance(args, os.PathLike): 1695 elif isinstance(args, os.PathLike):
|
D | zipfile.py | 500 if isinstance(filename, os.PathLike): 1229 if isinstance(file, os.PathLike):
|
/third_party/googletest/googletest/test/ |
D | googletest-printers-test.cc | 207 class PathLike { class 210 typedef PathLike value_type; 213 PathLike& operator*(); 219 PathLike() {} in PathLike() function in foo::PathLike 224 friend ::std::ostream& operator<<(::std::ostream& os, const PathLike&) { in operator <<() argument 1315 ::foo::PathLike x; 1317 const ::foo::PathLike cx;
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.0a2.rst | 47 Add support for os.PathLike objects to open() (part of :pep:`519`). 218 Add os.PathLike support to DirEntry (part of :pep:`519`). Initial patch by 238 Add os.PathLike support to pathlib, removing its provisional status (part of 248 Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part 258 Introduce os.PathLike and os.fspath() (part of :pep:`519`).
|
D | 3.8.0a2.rst | 28 in interfaces that allow passing :class:`~os.PathLike` objects has been
|
/third_party/python/Lib/importlib/ |
D | resources.py | 37 Resource = Union[str, os.PathLike]
|
/third_party/python/Lib/xml/sax/ |
D | saxutils.py | 342 if isinstance(source, os.PathLike):
|
/third_party/python/Doc/library/ |
D | compileall.rst | 201 They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`. 271 They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`.
|
D | pathlib.rst | 108 path segment, an object implementing the :class:`os.PathLike` interface 150 Pure path objects implement the :class:`os.PathLike` interface, allowing them 154 Added support for the :class:`os.PathLike` interface. 220 A path object can be used anywhere an object implementing :class:`os.PathLike`
|
D | os.rst | 246 Support added to accept objects implementing the :class:`os.PathLike` 261 Support added to accept objects implementing the :class:`os.PathLike` 270 Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is 277 .. class:: PathLike 1977 (directly or indirectly through the :class:`PathLike` interface), 2217 :class:`PathLike` interface), the result will also be a string object, 2396 (directly or indirectly through the :class:`PathLike` interface), 2476 implements the :class:`PathLike` interface. 2595 Added support for the :class:`~os.PathLike` interface. Added support 2603 either a string or bytes -- directly or indirectly through the :class:`PathLike` [all …]
|
/third_party/python/Doc/c-api/ |
D | sys.rst | 12 incremented. If the object implements the :class:`os.PathLike` interface, 13 then :meth:`~os.PathLike.__fspath__` is returned as long as it is a
|
/third_party/typescript/tests/baselines/reference/user/ |
D | acorn.log | 482 …Overload 1 of 3, '(path: number | PathLike, options?: { encoding?: null | undefined; flag?: string… 483 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'. 484 Type 'undefined' is not assignable to type 'number | PathLike'. 485 …Overload 2 of 3, '(path: number | PathLike, options: { encoding: BufferEncoding; flag?: string | u… 486 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'. 487 …Overload 3 of 3, '(path: number | PathLike, options?: BufferEncoding | (BaseEncodingOptions & { fl… 488 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'. 496 …Overload 1 of 3, '(path: number | PathLike, options?: { encoding?: null | undefined; flag?: string… 497 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'. 498 …Overload 2 of 3, '(path: number | PathLike, options: { encoding: BufferEncoding; flag?: string | u… [all …]
|
/third_party/python/Lib/test/ |
D | test_ntpath.py | 46 if isinstance(path, (bytes, str, os.PathLike)):
|
D | test_os.py | 4454 self.assertTrue(issubclass(FakePath, os.PathLike)) 4455 self.assertTrue(isinstance(FakePath('x'), os.PathLike)) 4479 class A(os.PathLike): 4482 self.assertTrue(issubclass(FakePath, os.PathLike)) 4485 self.assertIsInstance(os.PathLike[bytes], types.GenericAlias)
|
/third_party/python/Doc/whatsnew/ |
D | 3.6.rst | 414 :class:`os.PathLike` has been defined. By implementing the 415 :meth:`~os.PathLike.__fspath__` method, an object signals that it 420 :class:`os.PathLike` or is a :class:`str` or :class:`bytes` object 427 :class:`os.PathLike` objects, as have all relevant functions in the 431 implement :class:`os.PathLike`.
|