Home
last modified time | relevance | path

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

12

/third_party/python/Lib/test/test_importlib/
Dtest_util.py51 spec = self.machinery.ModuleSpec('test', Loader())
59 spec = self.machinery.ModuleSpec('test', Loader())
73 spec = self.machinery.ModuleSpec('test', Loader())
79 spec = self.machinery.ModuleSpec('test', object())
84 spec = self.machinery.ModuleSpec('test', object())
90 spec = self.machinery.ModuleSpec('test', loader)
95 spec = self.machinery.ModuleSpec('test.pkg', object())
100 spec = self.machinery.ModuleSpec('test', object(), is_package=True)
105 spec = self.machinery.ModuleSpec('test', object(), origin='some/path')
111 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 …]
Dutil.py463 spec = machinery.ModuleSpec(
Dtest_api.py181 return machinery['Source'].ModuleSpec(name, (name, path))
Dtest_abc.py433 spec = self.machinery.ModuleSpec('blah', None)
/third_party/python/Lib/importlib/
Dresources.py9 from importlib.machinery import ModuleSpec
47 spec = cast(ModuleSpec, package.__spec__)
Dmachinery.py3 from ._bootstrap import ModuleSpec
D_bootstrap_external.py758 spec = _bootstrap.ModuleSpec(name, loader, origin=location)
1386 spec = _bootstrap.ModuleSpec(fullname, None)
1418 spec = _bootstrap.ModuleSpec(fullname, None)
1573 spec = _bootstrap.ModuleSpec(fullname, None)
D_bootstrap.py320 class ModuleSpec: class
444 return ModuleSpec(name, loader, origin=origin, is_package=is_package)
485 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`.
Drunpy.rst174 :pep:`451` -- A ModuleSpec Type for the Import System
Dimportlib.rst62 A ModuleSpec Type for the Import System
211 a :class:`~importlib.machinery.ModuleSpec`.
1396 .. class:: ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None)
1663 A factory function for creating a :class:`~importlib.machinery.ModuleSpec`
1665 for ModuleSpec. The function uses available :term:`loader` APIs, such as
1673 A factory function for creating a :class:`~importlib.machinery.ModuleSpec`
Dpkgutil.rst85 :class:`ModuleSpec`.
/third_party/python/Lib/
Dimp.py341 spec = importlib.machinery.ModuleSpec(
Dzipimport.py183 spec = _bootstrap.ModuleSpec(name=fullname, loader=None,
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py16 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__.py1072 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.py233 module.__spec__ = self.machinery.ModuleSpec('bad name', loader)
/third_party/python/Doc/reference/
Dimport.rst530 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

12