Home
last modified time | relevance | path

Searched refs:path_importer_cache (Results 1 – 25 of 35) sorted by relevance

12

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py34 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/
Drefleak.py57 pic = sys.path_importer_cache.copy()
132 sys.path_importer_cache.clear()
133 sys.path_importer_cache.update(pic)
/external/python/cpython3/Python/
Dimport.c962 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/
Dtest_api.py386 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/
Dimport.c1231 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/
Dtest_zipimport_support.py70 sys.path_importer_cache.clear()
76 sys.path_importer_cache.clear()
Dtest_threaded_import.py85 sys.path_importer_cache.clear()
Dtest_zipimport.py65 sys.path_importer_cache.clear()
72 sys.path_importer_cache.clear()
/external/python/cpython2/Lib/test/
Dtest_importhooks.py145 sys.path_importer_cache.clear()
152 sys.path_importer_cache.clear()
Dregrtest.py1050 pic = sys.path_importer_cache.copy()
1105 sys.path_importer_cache.clear()
1106 sys.path_importer_cache.update(pic)
/external/python/cpython2/Lib/
Dpkgutil.py380 importer = sys.path_importer_cache[path_item]
390 sys.path_importer_cache.setdefault(path_item, importer)
Drunpy.py199 cache = sys.path_importer_cache
/external/python/cpython3/Lib/
Dpkgutil.py412 importer = sys.path_importer_cache[path_item]
417 sys.path_importer_cache.setdefault(path_item, importer)
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py1063 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/
Dimport.rst734 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/
Dimport.rst176 *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/
Dimport.rst211 *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/
Dimp.rst375 ``None`` is inserted into ``sys.path_importer_cache`` instead of an
379 Insert ``None`` into ``sys.path_importer_cache`` instead.
Dimportlib.rst827 :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`.
Dpkgutil.rst98 The returned finder is cached in :data:`sys.path_importer_cache` if it was
/external/python/cpython2/Doc/reference/
Dsimple_stmts.rst728 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/
Dpkgutil.rst82 The returned importer is cached in :data:`sys.path_importer_cache` if it was
Dimp.rst271 Python adds instances of this type to ``sys.path_importer_cache`` for any path
/external/python/cpython3/Doc/whatsnew/
D3.3.rst737 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/
Dsetup.py375 sys.path_importer_cache.clear()

12