Home
last modified time | relevance | path

Searched refs:PathLike (Results 1 – 25 of 28) sorted by relevance

12

/external/fonttools/Tests/ufoLib/
DUFOZ_test.py58 class PathLike(object): class
66 path = PathLike(testufo)
/external/python/cpython3/Lib/
Dimghdr.py3 from os import PathLike
15 if isinstance(file, (str, PathLike)):
Dcompileall.py24 if quiet < 2 and isinstance(dir, os.PathLike):
119 if quiet < 2 and isinstance(fullname, os.PathLike):
Dzipapp.py39 if isinstance(archive, (str, os.PathLike)):
Dlzma.py117 if isinstance(filename, (str, bytes, os.PathLike)):
Dbz2.py91 if isinstance(filename, (str, bytes, os.PathLike)):
Dfileinput.py192 elif isinstance(files, os.PathLike):
Dconfigparser.py690 if isinstance(filenames, (str, bytes, os.PathLike)):
699 if isinstance(filename, os.PathLike):
Dgzip.py52 if isinstance(filename, (str, bytes, os.PathLike)):
Dos.py1067 class PathLike(abc.ABC): class
Dzipfile.py504 if isinstance(filename, os.PathLike):
1193 if isinstance(file, os.PathLike):
Dpathlib.py960 os.PathLike.register(PurePath)
/external/googletest/googletest/test/
Dgoogletest-printers-test.cc182 class PathLike { class
185 typedef PathLike value_type;
188 PathLike& operator*();
194 PathLike() {} in PathLike() function in foo::PathLike
199 friend ::std::ostream& operator<<(::std::ostream& os, const PathLike&) { in operator <<() argument
1092 ::foo::PathLike x; in TEST()
1094 const ::foo::PathLike cx; in TEST()
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a2.rst47 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).
D3.6.1rc1.rst289 Add a test that checks that cwd parameter of Popen() accepts PathLike
D3.7.3rc1.rst44 in interfaces that allow passing :class:`~os.PathLike` objects has been
/external/python/cpython3/Lib/importlib/
Dresources.py31 Resource = Union[str, os.PathLike]
/external/python/cpython3/Doc/c-api/
Dsys.rst12 incremented. If the object implements the :class:`os.PathLike` interface,
13 then :meth:`~os.PathLike.__fspath__` is returned as long as it is a
Dunicode.rst839 through the :class:`os.PathLike` interface -- to :class:`bytes` using
856 directly or indirectly through the :class:`os.PathLike` interface -- to
/external/python/cpython3/Doc/library/
Dpathlib.rst108 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`
Dos.rst174 Support added to accept objects implementing the :class:`os.PathLike`
189 Support added to accept objects implementing the :class:`os.PathLike`
198 Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is
205 .. class:: PathLike
1764 (directly or indirectly through the :class:`PathLike` interface),
1992 :class:`PathLike` interface), the result will also be a string object,
2138 (directly or indirectly through the :class:`PathLike` interface),
2216 implements the :class:`PathLike` interface.
2334 Added support for the :class:`~os.PathLike` interface. Added support
2342 either a string or bytes -- directly or indirectly through the :class:`PathLike`
[all …]
Dos.path.rst322 or indirectly through the :class:`os.PathLike` interface).
/external/python/cpython3/Doc/whatsnew/
D3.6.rst414 :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`.
/external/python/cpython3/Doc/
Dglossary.rst856 implementing the :class:`os.PathLike` protocol. An object that supports
857 the :class:`os.PathLike` protocol can be converted to a :class:`str` or
/external/python/cpython3/Lib/test/
Dtest_os.py3715 self.assertTrue(issubclass(FakePath, os.PathLike))
3716 self.assertTrue(isinstance(FakePath('x'), os.PathLike))

12