Home
last modified time | relevance | path

Searched refs:ModuleSpec (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py49 spec = self.machinery.ModuleSpec('test', Loader())
57 spec = self.machinery.ModuleSpec('test', Loader())
71 spec = self.machinery.ModuleSpec('test', Loader())
77 spec = self.machinery.ModuleSpec('test', object())
82 spec = self.machinery.ModuleSpec('test', object())
88 spec = self.machinery.ModuleSpec('test', loader)
93 spec = self.machinery.ModuleSpec('test.pkg', object())
98 spec = self.machinery.ModuleSpec('test', object(), is_package=True)
103 spec = self.machinery.ModuleSpec('test', object(), origin='some/path')
109 spec = self.machinery.ModuleSpec('test', object())
[all …]
Dtest_spec.py72 self.spec = self.machinery.ModuleSpec(self.name, self.loader)
73 self.loc_spec = self.machinery.ModuleSpec(self.name, self.loader,
78 spec = self.machinery.ModuleSpec(self.name, self.loader)
89 spec = self.machinery.ModuleSpec(self.name, None)
100 spec = self.machinery.ModuleSpec(self.name, self.loader,
112 spec = self.machinery.ModuleSpec(self.name, self.loader,
124 spec = self.machinery.ModuleSpec(self.name, self.loader,
171 spec = self.machinery.ModuleSpec('spam.eggs', self.loader)
176 spec = self.machinery.ModuleSpec('spam.eggs', self.loader,
192 spec = self.machinery.ModuleSpec(self.name, self.loader)
[all …]
Dtest_api.py177 return machinery['Source'].ModuleSpec(name, (name, path))
Dtest_abc.py370 spec = self.machinery.ModuleSpec('blah', None)
/external/python/cpython3/Lib/importlib/
Dmachinery.py5 from ._bootstrap import ModuleSpec
D_bootstrap_external.py556 spec = _bootstrap.ModuleSpec(name, loader, origin=location)
1113 spec = _bootstrap.ModuleSpec(fullname, None)
1145 spec = _bootstrap.ModuleSpec(fullname, None)
1276 spec = _bootstrap.ModuleSpec(fullname, None)
D_bootstrap.py318 class ModuleSpec: class
442 return ModuleSpec(name, loader, origin=origin, is_package=is_package)
486 spec = ModuleSpec(name, loader, origin=origin)
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest___loader__.py12 return machinery.ModuleSpec(fullname, self)
Dtest_api.py16 spec = machinery.ModuleSpec(fullname, cls)
Dtest_path.py160 success_finder.spec = self.machinery.ModuleSpec('whatever', __loader__)
/external/python/cpython3/Lib/
Dimp.py340 spec = importlib.machinery.ModuleSpec(
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py16 spec = self.machinery.ModuleSpec(
/external/python/cpython3/Doc/c-api/
Dmodule.rst305 The function receives a :py:class:`~importlib.machinery.ModuleSpec`
355 ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2`
363 ModuleSpec *spec*, assuming the API version *module_api_version*.
/external/python/cpython3/Lib/test/test_import/
D__init__.py889 self.assertIs(machinery.ModuleSpec, mod.ModuleSpec)
/external/python/cpython3/Doc/library/
Drunpy.rst174 :pep:`451` -- A ModuleSpec Type for the Import System
Dimportlib.rst62 A ModuleSpec Type for the Import System
1046 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None)
1294 A factory function for creating a :class:`ModuleSpec` instance based
1296 ModuleSpec. The function uses available :term:`loader` APIs, such as
1304 A factory function for creating a :class:`ModuleSpec` instance based
Dpkgutil.rst85 :class:`ModuleSpec`.
Dsys.rst827 :class:`importlib.machinery.ModuleSpec`
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py230 module.__spec__ = self.machinery.ModuleSpec('bad name', loader)
/external/python/cpython3/Lib/test/
Dtest_runpy.py161 mod_spec = importlib.machinery.ModuleSpec(mod_name,
/external/python/cpython3/Doc/
Dglossary.rst668 module. An instance of :class:`importlib.machinery.ModuleSpec`.
/external/python/cpython3/Doc/reference/
Dimport.rst522 See :class:`~importlib.machinery.ModuleSpec` for more specifics on what
/external/python/cpython3/Doc/whatsnew/
D3.4.rst93 * :ref:`A ModuleSpec Type <whatsnew-pep-451>` for the Import System
380 PEP 451: A ModuleSpec Type for the Import System
/external/python/cpython3/Misc/
DHISTORY3085 - Issue #18864: Added a setter for ModuleSpec.has_location.