/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_path.py | 34 with util.import_state(path_importer_cache={path: importer}, 45 with util.import_state(path_importer_cache={path: importer}): 54 with util.import_state(path_importer_cache={path: importer}, 68 self.assertIn(path, sys.path_importer_cache) 69 self.assertIs(sys.path_importer_cache[path], importer) 75 with util.import_state(path_importer_cache={}, path_hooks=[], 80 self.assertIsNone(sys.path_importer_cache[path_entry]) 93 self.assertIn(os.getcwd(), sys.path_importer_cache) 100 new_path_importer_cache = sys.path_importer_cache.copy() 110 path_importer_cache=new_path_importer_cache, [all …]
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | refleak.py | 57 pic = sys.path_importer_cache.copy() 132 sys.path_importer_cache.clear() 133 sys.path_importer_cache.update(pic)
|
/external/python/cpython3/Python/ |
D | import.c | 962 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument 970 assert(PyDict_Check(path_importer_cache)); in get_path_importer() 976 importer = PyDict_GetItem(path_importer_cache, p); in get_path_importer() 981 if (PyDict_SetItem(path_importer_cache, p, Py_None) != 0) in get_path_importer() 1001 int err = PyDict_SetItem(path_importer_cache, p, importer); in get_path_importer() 1011 PyObject *importer=NULL, *path_importer_cache=NULL, *path_hooks=NULL; in PyImport_GetImporter() local 1013 path_importer_cache = PySys_GetObject("path_importer_cache"); in PyImport_GetImporter() 1015 if (path_importer_cache != NULL && path_hooks != NULL) { in PyImport_GetImporter() 1016 importer = get_path_importer(path_importer_cache, in PyImport_GetImporter()
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_api.py | 386 self.addCleanup(lambda: sys.path_importer_cache.__delitem__(key)) 387 sys.path_importer_cache[key] = path_ins 396 sys.path_importer_cache[key] = None 397 self.addCleanup(lambda: sys.path_importer_cache.__delitem__(key))
|
/external/python/cpython2/Python/ |
D | import.c | 1231 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument 1239 assert(PyDict_Check(path_importer_cache)); in get_path_importer() 1245 importer = PyDict_GetItem(path_importer_cache, p); in get_path_importer() 1250 if (PyDict_SetItem(path_importer_cache, p, Py_None) != 0) in get_path_importer() 1278 int err = PyDict_SetItem(path_importer_cache, p, importer); in get_path_importer() 1288 PyObject *importer=NULL, *path_importer_cache=NULL, *path_hooks=NULL; in PyImport_GetImporter() local 1290 if ((path_importer_cache = PySys_GetObject("path_importer_cache"))) { in PyImport_GetImporter() 1292 importer = get_path_importer(path_importer_cache, in PyImport_GetImporter() 1322 PyObject *path_hooks, *path_importer_cache; in find_module() local 1439 path_importer_cache = PySys_GetObject("path_importer_cache"); in find_module() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport_support.py | 70 sys.path_importer_cache.clear() 76 sys.path_importer_cache.clear()
|
D | test_threaded_import.py | 85 sys.path_importer_cache.clear()
|
D | test_zipimport.py | 65 sys.path_importer_cache.clear() 72 sys.path_importer_cache.clear()
|
/external/python/cpython2/Lib/test/ |
D | test_importhooks.py | 145 sys.path_importer_cache.clear() 152 sys.path_importer_cache.clear()
|
D | regrtest.py | 1050 pic = sys.path_importer_cache.copy() 1105 sys.path_importer_cache.clear() 1106 sys.path_importer_cache.update(pic)
|
/external/python/cpython2/Lib/ |
D | pkgutil.py | 380 importer = sys.path_importer_cache[path_item] 390 sys.path_importer_cache.setdefault(path_item, importer)
|
D | runpy.py | 199 cache = sys.path_importer_cache
|
/external/python/cpython3/Lib/ |
D | pkgutil.py | 412 importer = sys.path_importer_cache[path_item] 417 sys.path_importer_cache.setdefault(path_item, importer)
|
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap_external.py | 1063 for finder in sys.path_importer_cache.values(): 1096 finder = sys.path_importer_cache[path] 1099 sys.path_importer_cache[path] = finder
|
/external/python/cpython3/Doc/reference/ |
D | import.rst | 734 single: sys.path_importer_cache 748 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__`` 778 in :data:`sys.path_importer_cache` (despite the name, this cache actually 782 free to remove cache entries from :data:`sys.path_importer_cache` forcing 802 in :data:`sys.path_importer_cache` (to indicate that there is no finder for 814 :data:`sys.path_importer_cache`. Second, the value for the current working 816 :data:`sys.path_importer_cache` and returned by 1005 :class:`imp.NullImporter` in the :data:`sys.path_importer_cache`. It
|
/external/python/cpython2/Doc/c-api/ |
D | import.rst | 176 *path*, possibly by fetching it from the :data:`sys.path_importer_cache` 180 Cache the result in :data:`sys.path_importer_cache`. Return a new reference
|
/external/python/cpython3/Doc/c-api/ |
D | import.rst | 211 *path*, possibly by fetching it from the :data:`sys.path_importer_cache` 215 finder for this path item. Cache the result in :data:`sys.path_importer_cache`.
|
/external/python/cpython3/Doc/library/ |
D | imp.rst | 375 ``None`` is inserted into ``sys.path_importer_cache`` instead of an 379 Insert ``None`` into ``sys.path_importer_cache`` instead.
|
D | importlib.rst | 827 :data:`sys.path_importer_cache` is checked. If a non-false object 830 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is 832 in :data:`sys.path_importer_cache` along with being queried about 841 in :data:`sys.path_importer_cache`. 853 finders stored in :attr:`sys.path_importer_cache`.
|
D | pkgutil.rst | 98 The returned finder is cached in :data:`sys.path_importer_cache` if it was
|
/external/python/cpython2/Doc/reference/ |
D | simple_stmts.rst | 728 single: sys.path_importer_cache 735 :data:`sys.path_importer_cache`, and :data:`sys.path`. 745 can handle that path. The dict at :data:`sys.path_importer_cache` caches 750 :data:`sys.path_importer_cache` and then used for that path entry. If no finder 752 stored in :data:`sys.path_importer_cache` to signify that an implicit,
|
/external/python/cpython2/Doc/library/ |
D | pkgutil.rst | 82 The returned importer is cached in :data:`sys.path_importer_cache` if it was
|
D | imp.rst | 271 Python adds instances of this type to ``sys.path_importer_cache`` for any path
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 737 the same name on all finders cached in :attr:`sys.path_importer_cache` to help 763 ``None`` is now inserted into :attr:`sys.path_importer_cache` when no finder 2384 * Because ``None`` is now inserted into :attr:`sys.path_importer_cache`, if you 2389 :attr:`sys.path_importer_cache` where it repesents the use of implicit
|
/external/python/cpython3/ |
D | setup.py | 375 sys.path_importer_cache.clear()
|