Home
last modified time | relevance | path

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

12

/third_party/python/Lib/test/test_importlib/
Dtest_util.py52 spec = self.machinery.ModuleSpec('test', Loader())
60 spec = self.machinery.ModuleSpec('test', Loader())
74 spec = self.machinery.ModuleSpec('test', Loader())
80 spec = self.machinery.ModuleSpec('test', object())
85 spec = self.machinery.ModuleSpec('test', object())
91 spec = self.machinery.ModuleSpec('test', loader)
96 spec = self.machinery.ModuleSpec('test.pkg', object())
101 spec = self.machinery.ModuleSpec('test', object(), is_package=True)
106 spec = self.machinery.ModuleSpec('test', object(), origin='some/path')
112 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.py181 return machinery['Source'].ModuleSpec(name, (name, path))
Dtest_abc.py433 spec = self.machinery.ModuleSpec('blah', None)
/third_party/python/Lib/test/test_importlib/resources/
Dutil.py14 from importlib.machinery import ModuleSpec
57 spec = ModuleSpec(name, loader, origin='does-not-exist', is_package=is_package)
/third_party/python/Lib/importlib/
Dmachinery.py3 from ._bootstrap import ModuleSpec
D_bootstrap_external.py815 spec = _bootstrap.ModuleSpec(name, loader, origin=location)
1460 spec = _bootstrap.ModuleSpec(fullname, None)
1492 spec = _bootstrap.ModuleSpec(fullname, None)
1650 spec = _bootstrap.ModuleSpec(fullname, None)
D_bootstrap.py320 class ModuleSpec: class
448 return ModuleSpec(name, loader, origin=origin, is_package=is_package)
486 spec = ModuleSpec(name, loader, origin=origin)
/third_party/python/Lib/test/test_importlib/import_/
Dtest___loader__.py13 return machinery.ModuleSpec(fullname, self)
Dtest_api.py17 spec = machinery.ModuleSpec(fullname, cls)
Dtest_path.py169 success_finder.spec = self.machinery.ModuleSpec('whatever', __loader__)
/third_party/python/Doc/library/
Dtypes.rst241 This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader`
257 :attr:`importlib.machinery.ModuleSpec.name`.
266 This attribute is to match :attr:`importlib.machinery.ModuleSpec.parent`
282 instance of :class:`importlib.machinery.ModuleSpec`.
Dimportlib.rst76 A ModuleSpec Type for the Import System
229 a :class:`~importlib.machinery.ModuleSpec`.
1127 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None)
1406 A factory function for creating a :class:`~importlib.machinery.ModuleSpec`
1408 for ModuleSpec. The function uses available :term:`loader` APIs, such as
1416 A factory function for creating a :class:`~importlib.machinery.ModuleSpec`
Drunpy.rst174 :pep:`451` -- A ModuleSpec Type for the Import System
Dpkgutil.rst85 :class:`importlib.machinery.ModuleSpec`.
/third_party/python/Lib/
Dimp.py341 spec = importlib.machinery.ModuleSpec(
Dzipimport.py182 spec = _bootstrap.ModuleSpec(name=fullname, loader=None,
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py46 spec = self.machinery.ModuleSpec(
/third_party/python/Doc/c-api/
Dmodule.rst342 The function receives a :py:class:`~importlib.machinery.ModuleSpec`
392 ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2`
400 ModuleSpec *spec*, assuming the API version *module_api_version*.
/third_party/python/Lib/test/test_import/
D__init__.py1093 self.assertIs(machinery.ModuleSpec, mod.ModuleSpec)
/third_party/python/Lib/test/
Dtest_runpy.py164 mod_spec = importlib.machinery.ModuleSpec(mod_name,
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py232 module.__spec__ = self.machinery.ModuleSpec('bad name', loader)
/third_party/python/Doc/reference/
Dimport.rst528 See :class:`~importlib.machinery.ModuleSpec` for details on the contents of
/third_party/python/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
/third_party/python/Doc/
Dglossary.rst810 module. An instance of :class:`importlib.machinery.ModuleSpec`.

12