Home
last modified time | relevance | path

Searched refs:path_hooks (Results 1 – 24 of 24) sorted by relevance

/third_party/python/Lib/test/test_importlib/import_/
Dtest_path.py65 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/
Dtest_doctest.py2716 self.path_hooks = sys.path_hooks[:]
2726 sys.path_hooks[:] = self.path_hooks
Dtest_zipimport_support.py70 self.path_hooks = sys.path_hooks[:]
76 sys.path_hooks[:] = self.path_hooks
Dtest_zipimport.py67 self.path_hooks = sys.path_hooks[:]
74 sys.path_hooks[:] = self.path_hooks
/third_party/python/Lib/test/libregrtest/
Dsave_env.py140 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/
Dimport.c56 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/
Dimportbench.py72 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/
Dtest_threaded_import.py166 sys.path_hooks.insert(0, path_hook)
176 sys.path_hooks.remove(path_hook)
Dtest_namespace_pkgs.py49 kwargs.setdefault('path_hooks', sys.path_hooks)
/third_party/python/Lib/importlib/
D_bootstrap_external.py1337 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/
Dpkgutil.rst102 :data:`sys.path_hooks` is necessary.
133 finders (i.e. those on both sys.meta_path and sys.path_hooks).
Dimportlib.rst1172 :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))
Dsys.rst1119 .. 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/
Dimport.rst270 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
Dsimple_stmts.rst845 .. audit-event:: import module,filename,sys.path,sys.meta_path,sys.path_hooks import
/third_party/python/Lib/
Dpkgutil.py419 for path_hook in sys.path_hooks:
/third_party/python/Doc/c-api/
Dimport.rst219 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
/third_party/python/Doc/whatsnew/
D3.3.rst721 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
D2.3.rst716 * ``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:
D3.4.rst2338 directory to objects in :data:`sys.path_hooks` for the empty string. This
/third_party/python/Doc/tutorial/
Dmodules.rst325 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',
/third_party/python/Doc/
Dglossary.rst428 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/
D3.5.0a1.rst224 Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to
/third_party/python/Misc/
DHISTORY7746 - 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