/external/python/cpython3/Lib/ |
D | py_compile.py | 7 import importlib._bootstrap_external 8 import importlib.machinery 9 import importlib.util 129 cfile = importlib.util.cache_from_source(file, 132 cfile = importlib.util.cache_from_source(file) 141 loader = importlib.machinery.SourceFileLoader('<py_compile>', file) 162 bytecode = importlib._bootstrap_external._code_to_timestamp_pyc( 165 source_hash = importlib.util.source_hash(source_bytes) 166 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 171 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 …]
|
D | modulefinder.py | 4 import importlib._bootstrap_external 5 import importlib.machinery 61 importlib.machinery.PathFinder.invalidate_caches() 63 spec = importlib.machinery.PathFinder.find_spec(name, path) 70 if spec.loader is importlib.machinery.BuiltinImporter: 73 if spec.loader is importlib.machinery.FrozenImporter: 81 if isinstance(spec.loader, importlib.machinery.SourceFileLoader): 85 elif isinstance(spec.loader, importlib.machinery.ExtensionFileLoader): 89 elif isinstance(spec.loader, importlib.machinery.SourcelessFileLoader): 284 suffixes += importlib.machinery.EXTENSION_SUFFIXES[:] [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/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 2 import importlib 3 import importlib.util 4 from importlib._bootstrap_external import _get_sourcefile 71 importlib.invalidate_caches() 86 from importlib import something_that_should_not_exist_anywhere 168 importlib.invalidate_caches() 213 importlib.invalidate_caches() 241 importlib.invalidate_caches() 304 self.assertRaises(ZeroDivisionError, importlib.reload, mod) 333 importlib.invalidate_caches() [all …]
|
/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/autotest/venv/lucifer/ |
D | autotest.py | 29 import importlib 85 importlib.import_module('chromite') 94 importlib.import_module('chromite') 97 importlib.import_module('autotest_lib.frontend.setup_django_environment') 100 settings = importlib.import_module('autotest_lib.frontend.settings') 199 return importlib.import_module(name)
|
/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') 137 mod = importlib.import_module(".".join(modules)) 195 source_hash = importlib.util.source_hash(source) 196 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 296 mod = importlib.import_module(TESTPACK) 308 mod = importlib.import_module(packdir3.replace(os.sep, '.')[:-1]) 314 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD))) [all …]
|
D | test_runpy.py | 8 import importlib, importlib.machinery, importlib.util 160 mod_spec = importlib.machinery.ModuleSpec(mod_name, 244 mod_spec = importlib.util.spec_from_file_location(mod_name, 278 new_spec = importlib.util.spec_from_file_location(spec.name, 311 importlib.invalidate_caches() 317 importlib.invalidate_caches() 337 "__cached__": importlib.util.cache_from_source(mod_fname), 352 importlib.invalidate_caches() 359 importlib.invalidate_caches() 411 importlib.invalidate_caches() [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_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_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) 78 self.recreation_check(struct.pack('<4sll', importlib.util.MAGIC_NUMBER, 151 cached = importlib.util.cache_from_source(self.source_path, 154 cached2 = importlib.util.cache_from_source(self.source_path2, 157 cached3 = importlib.util.cache_from_source(self.source_path3, 282 path = importlib.util.cache_from_source(fn) 286 path = importlib.util.cache_from_source(fn) [all …]
|
/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,
|
/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/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 | importlib.metadata.rst | 4 Using importlib.metadata 11 ``importlib.metadata`` is a library that provides for access to installed 15 ``importlib.resources`` in `Python 3.7 48 >>> from importlib.metadata import version # doctest: +SKIP 146 <importlib.metadata._hooks.PathDistribution object at 0x101e0cef0> 189 >>> from importlib.metadata import distribution # doctest: +SKIP 216 ``importlib.metadata`` queries the list of `meta path finders`_ on 220 ``importlib.metadata.MetadataPathFinder`` for finding distributions 223 The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the 225 ``importlib.metadata`` extends this protocol by looking for an optional [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 …]
|
/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/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_main.py | 8 import importlib.metadata 11 from importlib.metadata import ( 39 importlib.import_module('does_not_exist') 57 assert ep.load() is importlib.metadata 191 self.ep = importlib.metadata.EntryPoint('name', 'value', 'group')
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | loader.py | 26 import importlib 48 spec = importlib.util.spec_from_file_location(module_name, file_name) 49 module = importlib.util.module_from_spec(spec)
|
/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
|