/external/python/cpython2/Lib/test/ |
D | test_importhooks.py | 144 self.path_hooks = sys.path_hooks[:] 151 sys.path_hooks[:] = self.path_hooks 224 sys.path_hooks.append(PathImporter) 237 sys.path_hooks.append(ImpWrapper)
|
/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_path.py | 65 with util.import_state(path_hooks=[hook]): 75 with util.import_state(path_importer_cache={}, path_hooks=[], 90 with util.import_state(path=[path], path_hooks=[hook]): 111 path_hooks=new_path_hooks): 229 path_hooks=[Finder]): 247 path_hooks=[Finder]):
|
/external/python/cpython3/Python/ |
D | import.c | 58 PyObject *v, *path_hooks = NULL; in _PyImportHooks_Init() local 76 path_hooks = PyList_New(0); in _PyImportHooks_Init() 77 if (path_hooks == NULL) in _PyImportHooks_Init() 79 err = PySys_SetObject("path_hooks", path_hooks); in _PyImportHooks_Init() 86 Py_DECREF(path_hooks); in _PyImportHooks_Init() 92 PyObject *path_hooks, *zimpimport; in _PyImportZip_Init() local 95 path_hooks = PySys_GetObject("path_hooks"); in _PyImportZip_Init() 96 if (path_hooks == NULL) { in _PyImportZip_Init() 123 err = PyList_Insert(path_hooks, 0, zipimporter); in _PyImportZip_Init() 962 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument [all …]
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | save_env.py | 113 return id(sys.path_hooks), sys.path_hooks, sys.path_hooks[:] 115 sys.path_hooks = saved_hooks[1] 116 sys.path_hooks[:] = saved_hooks[2]
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport_support.py | 69 self.path_hooks = sys.path_hooks[:] 75 sys.path_hooks[:] = self.path_hooks
|
D | test_threaded_import.py | 157 sys.path_hooks.insert(0, path_hook) 167 sys.path_hooks.remove(path_hook)
|
D | test_zipimport.py | 64 self.path_hooks = sys.path_hooks[:] 71 sys.path_hooks[:] = self.path_hooks
|
/external/python/cpython2/Python/ |
D | import.c | 202 PyObject *v, *path_hooks = NULL, *zimpimport; in _PyImportHooks_Init() local 227 path_hooks = PyList_New(0); in _PyImportHooks_Init() 228 if (path_hooks == NULL) in _PyImportHooks_Init() 230 err = PySys_SetObject("path_hooks", path_hooks); in _PyImportHooks_Init() 257 err = PyList_Append(path_hooks, zipimporter); in _PyImportHooks_Init() 266 Py_DECREF(path_hooks); in _PyImportHooks_Init() 1231 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument 1238 assert(PyList_Check(path_hooks)); in get_path_importer() 1241 nhooks = PyList_Size(path_hooks); in get_path_importer() 1254 PyObject *hook = PyList_GetItem(path_hooks, j); in get_path_importer() [all …]
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 72 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 108 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 142 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader))
|
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap_external.py | 1070 if sys.path_hooks is not None and not sys.path_hooks: 1072 for hook in sys.path_hooks: 1442 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
|
/external/python/cpython2/Lib/ |
D | runpy.py | 207 for hook in sys.path_hooks:
|
D | pkgutil.py | 382 for path_hook in sys.path_hooks:
|
/external/python/cpython3/Doc/library/ |
D | pkgutil.rst | 102 :data:`sys.path_hooks` is necessary. 133 finders (i.e. those on both sys.meta_path and sys.path_hooks).
|
D | importlib.rst | 830 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is 856 Calls objects in :data:`sys.path_hooks` with the current working 905 A class method which returns a closure for use on :attr:`sys.path_hooks`. 1425 you create using a :term:`path entry hook` on :attr:`sys.path_hooks` which works 1448 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
|
D | sys.rst | 874 .. data:: path_hooks 886 paths that have been passed to :data:`sys.path_hooks` and the values are 888 finder is found on :data:`sys.path_hooks` then ``None`` is
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_namespace_pkgs.py | 48 kwargs.setdefault('path_hooks', sys.path_hooks)
|
/external/python/cpython3/Doc/reference/ |
D | import.rst | 269 to :data:`sys.path_hooks` as described below. 630 ``__path__``, and :data:`sys.path_hooks` (described below) are 733 single: sys.path_hooks 748 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__`` 786 over every callable in :data:`sys.path_hooks`. Each of the :term:`path entry 799 If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder` 807 hook` callables on :data:`sys.path_hooks`, then the following protocol is used
|
/external/python/cpython3/Lib/ |
D | pkgutil.py | 414 for path_hook in sys.path_hooks:
|
/external/python/cpython2/Doc/library/ |
D | pkgutil.rst | 90 :data:`sys.path_hooks` is necessary.
|
D | sys.rst | 709 .. data:: path_hooks 721 paths that have been passed to :data:`sys.path_hooks` and the values are 723 explicit finder is found on :data:`sys.path_hooks` then ``None`` is
|
D | imp.rst | 273 ``sys.path_hooks``. Instances have only one method:
|
/external/python/cpython2/Doc/c-api/ |
D | import.rst | 177 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
|
/external/python/cpython3/Doc/c-api/ |
D | import.rst | 212 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
|
/external/python/cpython2/Doc/reference/ |
D | simple_stmts.rst | 727 single: sys.path_hooks 734 define, though, is one that handles :data:`sys.path_hooks`, 747 finder cached then :data:`sys.path_hooks` is searched by calling each object in
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 721 this class was an implicit member of :attr:`sys.path_hooks`. 748 :attr:`sys.path_hooks` now store all of the meta path finders and path entry 764 can be found on :attr:`sys.path_hooks`. Since :class:`imp.NullImporter` is not 765 directly exposed on :attr:`sys.path_hooks` it could no longer be relied upon to 2380 * Because :attr:`sys.meta_path` and :attr:`sys.path_hooks` now have finders on
|