Home
last modified time | relevance | path

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

/external/python/cpython3/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):
230 path_hooks=[Finder]):
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py142 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/
Dtest_zipimport_support.py71 self.path_hooks = sys.path_hooks[:]
77 sys.path_hooks[:] = self.path_hooks
Dtest_zipimport.py73 self.path_hooks = sys.path_hooks[:]
80 sys.path_hooks[:] = self.path_hooks
/external/python/cpython3/Lib/test/test_doctest/
Dtest_doctest.py2889 self.path_hooks = sys.path_hooks[:]
2899 sys.path_hooks[:] = self.path_hooks
/external/python/cpython3/Tools/importbench/
Dimportbench.py73 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/
Dtest_threaded_import.py162 sys.path_hooks.insert(0, path_hook)
172 sys.path_hooks.remove(path_hook)
Dtest_namespace_pkgs.py51 kwargs.setdefault('path_hooks', sys.path_hooks)
/external/python/cpython3/Python/
Dimport.c3290 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.py1490 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/
Dpkgutil.py225 for path_hook in sys.path_hooks:
/external/python/cpython3/Doc/library/
Dpkgutil.rst80 :data:`sys.path_hooks` is necessary.
114 finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
Dimportlib.rst910 :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))
Dsys.rst1388 .. 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/
Dimport.rst270 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
Dsimple_stmts.rst866 .. audit-event:: import module,filename,sys.path,sys.meta_path,sys.path_hooks import
/external/python/cpython3/Doc/c-api/
Dimport.rst234 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
/external/python/cpython3/Doc/whatsnew/
D3.3.rst724 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
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
/external/python/cpython3/Doc/
Dglossary.rst474 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/
Dmodules.rst331 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst224 Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to
D3.13.0a1.rst6113 :data:`sys.path_hooks` or :data:`sys.path_importer_cache` or they are not
/external/python/cpython3/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