/external/python/cpython3/Lib/ |
D | py_compile.py | 7 import importlib._bootstrap_external 8 import importlib.machinery 9 import importlib.util 127 cfile = importlib.util.cache_from_source(file, 130 cfile = importlib.util.cache_from_source(file) 139 loader = importlib.machinery.SourceFileLoader('<py_compile>', file) 159 bytecode = importlib._bootstrap_external._code_to_timestamp_pyc( 162 source_hash = importlib.util.source_hash(source_bytes) 163 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 168 mode = importlib._bootstrap_external._calc_mode(file) [all …]
|
D | imp.py | 19 from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name 20 from importlib._bootstrap_external import SourcelessFileLoader 22 from importlib import machinery 23 from importlib import util 24 import importlib 314 return importlib.reload(module) 335 import importlib.machinery 336 loader = importlib.machinery.ExtensionFileLoader(name, path) 340 spec = importlib.machinery.ModuleSpec(
|
D | pkgutil.py | 5 import importlib 6 import importlib.util 7 import importlib.machinery 35 return importlib.util.spec_from_loader(name, loader) 46 if magic != importlib.util.MAGIC_NUMBER: 185 importlib.machinery.FileFinder, _iter_file_finder_modules) 192 imp = importlib.import_module('imp') 447 pkg = importlib.import_module(pkg_name) 493 spec = importlib.util.find_spec(fullname) 619 spec = importlib.util.find_spec(package) [all …]
|
/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 2 import importlib 3 import importlib.util 4 from importlib._bootstrap_external import _get_sourcefile 69 importlib.invalidate_caches() 84 from importlib import something_that_should_not_exist_anywhere 145 importlib.invalidate_caches() 190 importlib.invalidate_caches() 218 importlib.invalidate_caches() 281 self.assertRaises(ZeroDivisionError, importlib.reload, mod) 310 importlib.invalidate_caches() [all …]
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 10 import importlib 11 import importlib.machinery 69 sys.meta_path.append(importlib.machinery.PathFinder) 70 loader = (importlib.machinery.SourceFileLoader, 71 importlib.machinery.SOURCE_SUFFIXES) 72 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 105 sys.meta_path.append(importlib.machinery.PathFinder) 106 loader = (importlib.machinery.SourceFileLoader, 107 importlib.machinery.SOURCE_SUFFIXES) 108 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) [all …]
|
/external/autotest/venv/lucifer/ |
D | autotest.py | 25 import importlib 80 importlib.import_module('chromite') 89 importlib.import_module('chromite') 92 importlib.import_module('autotest_lib.frontend.setup_django_environment') 95 settings = importlib.import_module('autotest_lib.frontend.settings') 107 common = importlib.import_module('autotest_lib.scheduler.common') 198 return importlib.import_module(name)
|
/external/python/cpython2/Lib/test/ |
D | test_importlib.py | 3 import importlib 125 module = importlib.import_module('top_level') 135 module = importlib.import_module(name) 142 module = importlib.import_module('.d', 'a.b.c') 150 module = importlib.import_module('..c', 'a.b') 161 module = importlib.import_module(name, pkg_name) 167 self.assertRaises(TypeError, importlib.import_module, '.support')
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport.py | 4 import importlib 5 import importlib.util 42 pyc = (importlib.util.MAGIC_NUMBER + 59 pyc_file = importlib.util.cache_from_source(TESTMOD + '.py') 134 mod = importlib.import_module(".".join(modules)) 192 source_hash = importlib.util.source_hash(source) 193 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 293 mod = importlib.import_module(TESTPACK) 305 mod = importlib.import_module(packdir3.replace(os.sep, '.')[:-1]) 311 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD))) [all …]
|
D | test_runpy.py | 8 import importlib, importlib.machinery, importlib.util 161 mod_spec = importlib.machinery.ModuleSpec(mod_name, 246 mod_spec = importlib.util.spec_from_file_location(mod_name, 280 new_spec = importlib.util.spec_from_file_location(spec.name, 313 importlib.invalidate_caches() 319 importlib.invalidate_caches() 339 "__cached__": importlib.util.cache_from_source(mod_fname), 354 importlib.invalidate_caches() 361 importlib.invalidate_caches() 413 importlib.invalidate_caches() [all …]
|
D | test_cmd_line_script.py | 4 import importlib 5 import importlib.machinery 80 importlib.invalidate_caches() 87 importlib.invalidate_caches() 153 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 166 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 221 importlib.machinery.SourceFileLoader) 231 importlib.machinery.SourcelessFileLoader) 238 importlib.machinery.SourceFileLoader) 248 importlib.machinery.SourcelessFileLoader) [all …]
|
D | test_py_compile.py | 2 import importlib.util 57 self.cache_path = importlib.util.cache_from_source(self.source_path) 137 importlib.util.cache_from_source(bad_coding))) 144 flags = importlib._bootstrap_external._classify_pyc( 158 cache_path = importlib.util.cache_from_source(weird_path) 183 flags = importlib._bootstrap_external._classify_pyc( 191 flags = importlib._bootstrap_external._classify_pyc(
|
D | test_reprlib.py | 9 import importlib 10 import importlib.util 241 importlib.invalidate_caches() 266 len(importlib.util.cache_from_source("x.py")) - len("x.py")) 280 importlib.invalidate_caches() 293 importlib.invalidate_caches() 310 importlib.invalidate_caches() 321 importlib.invalidate_caches() 334 importlib.invalidate_caches()
|
D | test_compileall.py | 3 import importlib.util 34 self.bc_path = importlib.util.cache_from_source(self.source_path) 38 self.bc_path2 = importlib.util.cache_from_source(self.source_path2) 57 compare = struct.pack('<4sll', importlib.util.MAGIC_NUMBER, 0, mtime) 79 self.recreation_check(struct.pack('<4sll', importlib.util.MAGIC_NUMBER, 152 cached = importlib.util.cache_from_source(self.source_path, 155 cached2 = importlib.util.cache_from_source(self.source_path2, 158 cached3 = importlib.util.cache_from_source(self.source_path3, 283 path = importlib.util.cache_from_source(fn) 287 path = importlib.util.cache_from_source(fn) [all …]
|
/external/python/cpython3/Doc/library/ |
D | importlib.rst | 1 :mod:`!importlib` --- The implementation of :keyword:`!import` 4 .. module:: importlib 12 **Source code:** :source:`Lib/importlib/__init__.py` 19 The purpose of the :mod:`importlib` package is two-fold. One is to provide the 102 :func:`importlib.__import__`. This means all semantics of the function are 103 derived from :func:`importlib.__import__`. The most important difference 136 Use :func:`importlib.util.find_spec` instead. 214 :mod:`importlib.abc` -- Abstract base classes related to import 217 .. module:: importlib.abc 220 **Source code:** :source:`Lib/importlib/abc.py` [all …]
|
D | pkgutil.rst | 66 is now fully PEP 302 compliant and available in :mod:`importlib`. 75 is now fully PEP 302 compliant and available in :mod:`importlib`. 83 :func:`importlib.util.find_spec` that converts most failures to 88 Updated to be based directly on :mod:`importlib` rather than relying 105 Updated to be based directly on :mod:`importlib` rather than relying 120 Updated to be based directly on :mod:`importlib` rather than relying 141 Updated to be based directly on :mod:`importlib` rather than relying 158 implementations for :class:`importlib.machinery.FileFinder` and 162 Updated to be based directly on :mod:`importlib` rather than relying 197 implementations for :class:`importlib.machinery.FileFinder` and [all …]
|
D | tracemalloc.rst | 58 <frozen importlib._bootstrap>:716: size=4855 KiB, count=39328, average=126 B 59 <frozen importlib._bootstrap>:284: size=521 KiB, count=3199, average=167 B 64 <frozen importlib._bootstrap>:1446: size=70.4 KiB, count=911, average=79 B 65 <frozen importlib._bootstrap>:1454: size=52.0 KiB, count=25, average=2131 B 98 … <frozen importlib._bootstrap>:716: size=8173 KiB (+4428 KiB), count=71332 (+39369), average=117 B 101 <frozen importlib._bootstrap>:284: size=1005 KiB (+166 KiB), count=7423 (+1526), average=139 B 144 File "<frozen importlib._bootstrap>", line 716 145 File "<frozen importlib._bootstrap>", line 1036 146 File "<frozen importlib._bootstrap>", line 934 147 File "<frozen importlib._bootstrap>", line 1068 [all …]
|
D | imp.rst | 11 The :mod:`imp` package is pending deprecation in favor of :mod:`importlib`. 29 Use :attr:`importlib.util.MAGIC_NUMBER` instead. 44 Use the constants defined on :mod:`importlib.machinery` instead. 86 Use :func:`importlib.util.find_spec` instead unless Python 3.3 88 :func:`importlib.find_loader`. For example usage of the former case, 89 see the :ref:`importlib-examples` section of the :mod:`importlib` 115 consider using :func:`importlib.import_module`, otherwise use the loader 119 :func:`importlib.util.spec_from_file_location` and 120 :func:`importlib.util.module_from_spec`. See the :ref:`importlib-examples` 121 section of the :mod:`importlib` documentation for details of the various [all …]
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_case_sensitivity.py | 4 importlib = util.import_importlib('importlib') variable 68 ) = util.test_both(CaseSensitivityTestPEP302, importlib=importlib, 80 ) = util.test_both(CaseSensitivityTestPEP451, importlib=importlib,
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_case_sensitivity.py | 1 from importlib import _bootstrap_external 7 importlib = util.import_importlib('importlib') variable 41 ) = util.test_both(ExtensionModuleCaseSensitivityTest, importlib=importlib,
|
D | test_loader.py | 10 import importlib.util 11 import importlib 92 self.spec = importlib.util.find_spec(self.name) 145 importlib.reload(module) 168 spec = importlib.util.spec_from_loader(fullname, loader) 169 module = importlib.util.module_from_spec(spec)
|
/external/tensorflow/tensorflow/python/tools/ |
D | component_api_helper.py | 21 import importlib 54 parent_pkg = importlib.import_module(parent_package_str) 56 child_pkg = importlib.import_module(child_package_str)
|
/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_path.py | 3 importlib = util.import_importlib('importlib') variable 104 *self.importlib._bootstrap_external._get_supported_file_loaders())] 112 module = self.importlib.import_module('email') 218 ) = util.test_both(FindModuleTests, importlib=importlib, machinery=machinery) 230 ) = util.test_both(FindSpecTests, importlib=importlib, machinery=machinery)
|
/external/python/cpython3/Lib/idlelib/ |
D | pathbrowser.py | 1 import importlib.machinery 84 suffixes = importlib.machinery.EXTENSION_SUFFIXES[:] 85 suffixes += importlib.machinery.SOURCE_SUFFIXES 86 suffixes += importlib.machinery.BYTECODE_SUFFIXES
|
/external/python/cpython3/Tools/scripts/ |
D | checkpyc.py | 8 import importlib.util 11 cache_from_source = (importlib.util.cache_from_source if sys.implementation.cache_tag 21 MAGIC = importlib.util.MAGIC_NUMBER
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_lazy.py | 1 import importlib 2 from importlib import abc 3 from importlib import util 84 module = importlib.import_module(importer.module_name)
|