/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=[], 91 with util.import_state(path=[path], path_hooks=[hook]): 112 path_hooks=new_path_hooks): 230 path_hooks=[Finder]):
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | save_env.py | 142 return id(sys.path_hooks), sys.path_hooks, sys.path_hooks[:] 144 sys.path_hooks = saved_hooks[1] 145 sys.path_hooks[:] = saved_hooks[2]
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport_support.py | 71 self.path_hooks = sys.path_hooks[:] 77 sys.path_hooks[:] = self.path_hooks
|
D | test_zipimport.py | 73 self.path_hooks = sys.path_hooks[:] 80 sys.path_hooks[:] = self.path_hooks
|
/external/python/cpython3/Lib/test/test_doctest/ |
D | test_doctest.py | 2889 self.path_hooks = sys.path_hooks[:] 2899 sys.path_hooks[:] = self.path_hooks
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 73 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 109 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 143 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader))
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_threaded_import.py | 162 sys.path_hooks.insert(0, path_hook) 172 sys.path_hooks.remove(path_hook)
|
D | test_namespace_pkgs.py | 51 kwargs.setdefault('path_hooks', sys.path_hooks)
|
/external/python/cpython3/Python/ |
D | import.c | 3290 PyObject *path_hooks, PyObject *p) in get_path_importer() argument 3295 if (!PyList_Check(path_hooks)) { in get_path_importer() 3304 nhooks = PyList_Size(path_hooks); in get_path_importer() 3318 PyObject *hook = PyList_GetItem(path_hooks, j); in get_path_importer() 3350 PyObject *path_hooks = PySys_GetObject("path_hooks"); in PyImport_GetImporter() local 3351 if (path_hooks == NULL) { in PyImport_GetImporter() 3356 Py_INCREF(path_hooks); in PyImport_GetImporter() 3357 PyObject *importer = get_path_importer(tstate, path_importer_cache, path_hooks, path); in PyImport_GetImporter() 3358 Py_DECREF(path_hooks); in PyImport_GetImporter() 4114 PyObject *path_hooks = PySys_GetObject("path_hooks"); in init_zipimport() local [all …]
|
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap_external.py | 1490 if sys.path_hooks is not None and not sys.path_hooks: 1492 for hook in sys.path_hooks: 1822 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
|
/external/python/cpython3/Lib/ |
D | pkgutil.py | 225 for path_hook in sys.path_hooks:
|
/external/python/cpython3/Doc/library/ |
D | pkgutil.rst | 80 :data:`sys.path_hooks` is necessary. 114 finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
|
D | importlib.rst | 910 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is 934 Calls objects in :data:`sys.path_hooks` with the current working 979 A class method which returns a closure for use on :data:`sys.path_hooks`. 1622 you create using a :term:`path entry hook` on :data:`sys.path_hooks` which works 1645 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
|
D | sys.rst | 1388 .. data:: path_hooks 1400 paths that have been passed to :data:`sys.path_hooks` and the values are 1402 finder is found on :data:`sys.path_hooks` then ``None`` is
|
/external/python/cpython3/Doc/reference/ |
D | import.rst | 270 to :data:`sys.path_hooks` as described below. 561 :attr:`!__path__`. :data:`sys.path_hooks` (described below) are 687 single: sys.path_hooks 702 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__`` 738 over every callable in :data:`sys.path_hooks`. Each of the :term:`path entry 751 If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder` 759 hook` callables on :data:`sys.path_hooks`, then the following protocol is used
|
D | simple_stmts.rst | 866 .. audit-event:: import module,filename,sys.path,sys.meta_path,sys.path_hooks import
|
/external/python/cpython3/Doc/c-api/ |
D | import.rst | 234 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 724 this class was an implicit member of :data:`sys.path_hooks`. 751 :data:`sys.path_hooks` now store all of the meta path finders and path entry 767 can be found on :data:`sys.path_hooks`. Since :class:`!imp.NullImporter` is not 768 directly exposed on :data:`sys.path_hooks` it could no longer be relied upon to 2383 * Because :data:`sys.meta_path` and :data:`sys.path_hooks` now have finders on
|
D | 2.3.rst | 716 * ``sys.path_hooks`` is a list of callable objects; most often they'll be 722 ``sys.path_hooks`` will only need to be traversed once for each path. 744 for hook in sys.path_hooks:
|
D | 3.4.rst | 2338 directory to objects in :data:`sys.path_hooks` for the empty string. This
|
/external/python/cpython3/Doc/ |
D | glossary.rst | 474 entry finders <path entry finder>` for use with :data:`sys.path_hooks`. 1029 A :term:`finder` returned by a callable on :data:`sys.path_hooks` 1037 A callable on the :data:`sys.path_hooks` list which returns a :term:`path
|
/external/python/cpython3/Doc/tutorial/ |
D | modules.rst | 331 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a1.rst | 224 Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to
|
D | 3.13.0a1.rst | 6113 :data:`sys.path_hooks` or :data:`sys.path_importer_cache` or they are not
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7746 - Issue #14605: No longer have implicit entries in sys.path_hooks. If 7747 sys.path_hooks is found to be empty, a warning will be raised. None is now 22393 sys.meta_path, sys.path_hooks, and sys.path_importer_cache; these
|