Home
last modified time | relevance | path

Searched refs:find_loader (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py114 found = self.init.find_loader(name)
127 self.init.find_loader(name)
143 self.init.find_loader(name)
152 self.assertEqual((name, None), self.init.find_loader(name))
163 self.init.find_loader(name, path))
169 self.assertIsNone(self.init.find_loader('nevergoingtofindthismodule'))
Dtest_abc.py176 def find_loader(self, fullname): member in PathEntryFinder
177 return super().find_loader(fullname)
186 found = self.ins.find_loader('something')
401 found = finder.find_loader(name)
411 found = finder.find_loader('blah')
420 found = finder.find_loader('blah')
/external/python/cpython3/Lib/test/
Dtest_pkgutil.py467 loader = pkgutil.find_loader(name)
472 self.assertIsNotNone(pkgutil.find_loader("sys"))
473 self.assertIsNotNone(pkgutil.find_loader("os"))
474 self.assertIsNotNone(pkgutil.find_loader("test.support"))
Dtest_zipimport.py691 self.assertRaises(ValueError, zi.find_loader, 'foo')
/external/python/cpython3/Lib/
Dpkgutil.py479 return find_loader(fullname)
482 def find_loader(fullname): function
569 _, portions = finder.find_loader(final_name)
/external/python/cpython3/Lib/importlib/
D__init__.py74 def find_loader(name, path=None): function
Dabc.py94 def find_loader(self, fullname): member in PathEntryFinder
D_bootstrap_external.py431 loader, portions = self.find_loader(fullname)
1230 loader, portions = finder.find_loader(fullname)
1339 def find_loader(self, fullname): member in FileFinder
/external/python/cpython2/Lib/
Dpkgutil.py462 return find_loader(fullname)
464 def find_loader(fullname): function
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_finder.py211 loader_portions = finder.find_loader(name)
/external/python/cpython3/Modules/
Dzipimport.c372 find_loader(ZipImporter *self, PyObject *fullname, PyObject **namespace_portion) in find_loader() function
441 switch (find_loader(self, fullname, &namespace_portion)) { in zipimport_zipimporter_find_module_impl()
488 switch (find_loader(self, fullname, &namespace_portion)) { in zipimport_zipimporter_find_loader_impl()
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py138 def find_loader(self, fullname): member in FinderTests.test_finder_with_find_loader.TestFinder
/external/python/cpython3/Doc/reference/
Dimport.rst865 :meth:`~importlib.abc.PathEntryFinder.find_loader` and
874 :meth:`~importlib.abc.PathEntryFinder.find_loader` takes one argument, the
875 fully qualified name of the module being imported. ``find_loader()``
886 If ``find_loader()`` returns a non-``None`` loader value, the portion is
899 namespace packages. If both ``find_loader()`` and ``find_module()``
901 ``find_loader()`` in preference to ``find_module()``.
1001 Python 3.3. :pep:`420` also introduced the :meth:`find_loader` protocol as an
/external/python/cpython2/Doc/library/
Dpkgutil.rst67 .. function:: find_loader(fullname)
/external/python/cpython3/Doc/library/
Dpkgutil.rst78 .. function:: find_loader(fullname)
Dimportlib.rst116 .. function:: find_loader(name, path=None)
330 .. method:: find_loader(fullname)
355 equivalent to ``self.find_loader(fullname)[0]``.
1131 .. method:: find_loader(fullname)
Dimp.rst88 :func:`importlib.find_loader`. For example usage of the former case,
/external/python/cpython3/Doc/whatsnew/
D3.7.rst2003 :meth:`PathEntryFinder.find_loader() <importlib.abc.PathEntryFinder.find_loader>`
D3.4.rst2080 methods and functions are deprecated: :meth:`importlib.find_loader` is
2086 :meth:`importlib.abc.PathEntryFinder.find_loader` and
D3.3.rst2395 You will probably want to check for `find_loader()` first, though, in the
/external/python/cpython3/Misc/
DHISTORY1661 - Issue #14710: pkgutil.find_loader() no longer raises an exception when a
2229 when pkgutil.find_loader() is called directly).
2703 PathEntryFinder.find_loader(), and Loader.load_module() use PEP 451 APIs to
5249 - Issue #17099: Have importlib.find_loader() raise ValueError when __loader__
6376 - Issue #16489: Make it clearer that importlib.find_loader() needs parent
7624 - Issue #13959: Introduce importlib.find_loader() and document