/third_party/python/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): 261 path_hooks=[Finder]): 281 path_hooks=[Finder]):
|
/third_party/python/Lib/test/ |
D | test_doctest.py | 2716 self.path_hooks = sys.path_hooks[:] 2726 sys.path_hooks[:] = self.path_hooks
|
D | test_zipimport_support.py | 70 self.path_hooks = sys.path_hooks[:] 76 sys.path_hooks[:] = self.path_hooks
|
D | test_zipimport.py | 67 self.path_hooks = sys.path_hooks[:] 74 sys.path_hooks[:] = self.path_hooks
|
/third_party/python/Lib/test/libregrtest/ |
D | save_env.py | 140 return id(sys.path_hooks), sys.path_hooks, sys.path_hooks[:] 142 sys.path_hooks = saved_hooks[1] 143 sys.path_hooks[:] = saved_hooks[2]
|
/third_party/python/Python/ |
D | import.c | 56 PyObject *path_hooks, *zipimport; in _PyImportZip_Init() local 59 path_hooks = PySys_GetObject("path_hooks"); in _PyImportZip_Init() 60 if (path_hooks == NULL) { in _PyImportZip_Init() 91 err = PyList_Insert(path_hooks, 0, zipimporter); in _PyImportZip_Init() 938 PyObject *path_hooks, PyObject *p) in get_path_importer() argument 944 assert(PyList_Check(path_hooks)); in get_path_importer() 947 nhooks = PyList_Size(path_hooks); in get_path_importer() 962 PyObject *hook = PyList_GetItem(path_hooks, j); in get_path_importer() 989 PyObject *path_hooks = PySys_GetObject("path_hooks"); in PyImport_GetImporter() local 990 if (path_importer_cache == NULL || path_hooks == NULL) { in PyImport_GetImporter() [all …]
|
/third_party/python/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))
|
/third_party/python/Lib/test/test_importlib/ |
D | test_threaded_import.py | 166 sys.path_hooks.insert(0, path_hook) 176 sys.path_hooks.remove(path_hook)
|
D | test_namespace_pkgs.py | 49 kwargs.setdefault('path_hooks', sys.path_hooks)
|
/third_party/python/Lib/importlib/ |
D | _bootstrap_external.py | 1337 if sys.path_hooks is not None and not sys.path_hooks: 1339 for hook in sys.path_hooks: 1676 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
|
/third_party/python/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 | 1172 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is 1203 Calls objects in :data:`sys.path_hooks` with the current working 1255 A class method which returns a closure for use on :attr:`sys.path_hooks`. 1825 you create using a :term:`path entry hook` on :attr:`sys.path_hooks` which works 1848 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
|
D | sys.rst | 1119 .. data:: path_hooks 1131 paths that have been passed to :data:`sys.path_hooks` and the values are 1133 finder is found on :data:`sys.path_hooks` then ``None`` is
|
/third_party/python/Doc/reference/ |
D | import.rst | 270 to :data:`sys.path_hooks` as described below. 637 ``__path__``, and :data:`sys.path_hooks` (described below) are 774 single: sys.path_hooks 789 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__`` 827 over every callable in :data:`sys.path_hooks`. Each of the :term:`path entry 840 If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder` 848 hook` callables on :data:`sys.path_hooks`, then the following protocol is used
|
D | simple_stmts.rst | 845 .. audit-event:: import module,filename,sys.path,sys.meta_path,sys.path_hooks import
|
/third_party/python/Lib/ |
D | pkgutil.py | 419 for path_hook in sys.path_hooks:
|
/third_party/python/Doc/c-api/ |
D | import.rst | 219 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
|
/third_party/python/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
|
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
|
/third_party/python/Doc/tutorial/ |
D | modules.rst | 325 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',
|
/third_party/python/Doc/ |
D | glossary.rst | 428 entry finders <path entry finder>` for use with :data:`sys.path_hooks`. 942 A :term:`finder` returned by a callable on :data:`sys.path_hooks`
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0a1.rst | 224 Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to
|
/third_party/python/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
|