Home
last modified time | relevance | path

Searched refs:exec_module (Results 1 – 25 of 34) sorted by relevance

12

/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py14 def exec_module(self, name): member in ExecModuleTests
22 self.machinery.FrozenImporter.exec_module(module)
30 module, output = self.exec_module(name)
39 module, output = self.exec_module(name)
52 module, output = self.exec_module(name)
64 module, output = self.exec_module(name)
73 module, output = self.exec_module(name)
83 self.exec_module('_not_real')
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py152 loader.exec_module(orig_module)
216 loader.exec_module(module)
235 loader.exec_module(module)
256 loader.exec_module(mod)
262 loader.exec_module(mod)
288 loader.exec_module(mod)
294 loader.exec_module(mod)
312 loader.exec_module(mod)
317 loader.exec_module(mod)
343 loader.exec_module(mod)
[all …]
Dtest_source_encoding.py96 loader.exec_module(module)
152 loader.exec_module(module)
/third_party/python/Lib/test/test_importlib/
Dtest_lazy.py17 def exec_module(self, module): member in CollectInit
50 def exec_module(self, module): member in TestingImporter
73 spec.loader.exec_module(module)
Dtest_spec.py46 def exec_module(self, module): member in NewLoader
274 def exec_module(self, module): member in ModuleSpecMethodsTests.test_load_replaced.ReplacingLoader
286 def exec_module(self, module): member in ModuleSpecMethodsTests.test_load_failed.FailedLoader
296 def exec_module(self, module): member in ModuleSpecMethodsTests.test_load_failed_removed.FailedLoader
Dutil.py299 def exec_module(self, module): member in mock_spec
Dtest_util.py49 def exec_module(self, module): member in ModuleFromSpecTests.test_no_create_module.Loader
/third_party/python/Lib/importlib/
Dutil.py247 self.__spec__.loader.exec_module(self)
290 def exec_module(self, module): member in LazyLoader
Dabc.py213 exec_module = _bootstrap_external._LoaderBasics.exec_module variable in InspectLoader
D_bootstrap.py619 spec.loader.exec_module(module)
688 spec.loader.exec_module(module)
779 def exec_module(module): member in BuiltinImporter
850 def exec_module(module): member in FrozenImporter
D_bootstrap_external.py877 def exec_module(self, module): member in _LoaderBasics
1182 def exec_module(self, module): member in ExtensionFileLoader
1298 def exec_module(self, module): member in _NamespaceLoader
/third_party/python/Doc/library/
Dimportlib.rst402 :meth:`exec_module` is defined.
404 .. method:: exec_module(module)
408 be initialized when ``exec_module()`` is called. When this method exists,
462 When :meth:`exec_module` is available then backwards-compatible
468 :meth:`exec_module` is available.
471 The recommended API for loading a module is :meth:`exec_module`
474 all the other responsibilities of load_module() when exec_module()
649 .. method:: exec_module(module)
651 Implementation of :meth:`Loader.exec_module`.
660 use :meth:`exec_module` instead.
[all …]
Dzipimport.rst85 .. method:: exec_module(module)
87 Implementation of :meth:`importlib.abc.Loader.exec_module`.
167 Use :meth:`exec_module` instead.
/third_party/python/Lib/test/test_importlib/import_/
Dtest___loader__.py18 def exec_module(self, module): member in SpecLoaderMock
Dtest_api.py25 def exec_module(module): member in BadSpecFinderLoader
/third_party/python/Lib/test/
Dtest_zipimport.py478 spec.loader.exec_module(exec_mod)
483 spec.loader.exec_module(mod)
580 spec.loader.exec_module(mod)
605 spec.loader.exec_module(load_mod)
742 spec.loader.exec_module(mod)
838 self.assertRaises(TypeError, z.exec_module, None)
Dtest_asdl_parser.py32 loader.exec_module(module)
Dtest_pkgutil.py288 def exec_module(self, mod): member in PkgutilPEP302Tests.MyTestLoader
Dtest_capi.py976 loader.exec_module(module)
/third_party/python/Tools/peg_generator/pegen/
Dtestutil.py74 loader.exec_module(mod)
/third_party/python/Lib/test/test_import/
D__init__.py1254 old_exec_module = importlib.SourceLoader.exec_module
1258 def exec_module(*args): function
1260 importlib.SourceLoader.exec_module = exec_module
1270 del importlib.SourceLoader.exec_module
1272 importlib.SourceLoader.exec_module = old_exec_module
/third_party/python/Doc/reference/
Dimport.rst346 # It is assumed 'exec_module' will also be defined on the loader.
359 elif not hasattr(spec.loader, 'exec_module'):
365 spec.loader.exec_module(module)
400 * The module created during loading and passed to exec_module() may
412 The import machinery calls the :meth:`importlib.abc.Loader.exec_module`
414 returned from :meth:`~importlib.abc.Loader.exec_module` is ignored.
424 :meth:`~importlib.abc.Loader.exec_module` will be propagated.
442 :meth:`~importlib.abc.Loader.exec_module` and the import
447 not also implement ``exec_module()``. However, ``load_module()`` has been
448 deprecated and loaders should implement ``exec_module()`` instead.
[all …]
/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py114 loader.exec_module(module)
/third_party/python/Misc/NEWS.d/
D3.10.0a3.rst406 Deprecate zipimport.zipimporter.load_module() in favour of exec_module().
626 create_module(), and exec_module().
/third_party/python/Doc/whatsnew/
D3.10.rst1504 :meth:`zipimport.zipimporter.exec_module`.
1591 (superseded by :meth:`~importlib.abc.Loader.exec_module`),
1613 :meth:`~importlib.abc.Loader.exec_module` instead.
1617 preference for :meth:`~zipimport.zipimporter.exec_module`.
1622 :meth:`~importlib.abc.Loader.exec_module` is preferred.

12