Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py127 self.machinery.PathFinder.find_spec('whatever', [path]))
131 spec = self.machinery.PathFinder.find_spec('whatever', [path])
143 self.machinery.PathFinder.find_spec('whatever', [path]))
147 spec = self.machinery.PathFinder.find_spec('whatever', [path])
153 def find_spec(self, fullname, target=None): member in FinderTests.test_finder_with_find_spec.TestFinder
158 self.machinery.PathFinder.find_spec('whatever', [path]))
162 got = self.machinery.PathFinder.find_spec('whatever', [path])
185 self.assertIsNone(self.machinery.PathFinder.find_spec('whatever'))
223 return self.machinery.PathFinder.find_spec(*args, **kwargs)
251 self.machinery.PathFinder.find_spec('importlib')
Dtest___loader__.py11 def find_spec(self, fullname, path=None, target=None): member in SpecLoaderMock
Dtest_api.py14 def find_spec(cls, fullname, path=None, target=None): member in BadSpecFinderLoader
Dtest_meta_path.py29 first.find_spec = lambda self, fullname, path=None, parent=None: None
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py405 def find_spec(name, path=None, target=None): return name, path, target member in FindSpecTests.FakeMetaFinder
416 found = self.util.find_spec(name)
428 found = self.util.find_spec(name)
438 self.util.find_spec(name)
447 found = self.util.find_spec(name)
460 self.util.find_spec(name)
467 self.util.find_spec(name))
471 self.assertIsNone(self.util.find_spec('nevergoingtofindthismodule'))
478 spec = self.util.find_spec(fullname)
483 spec_again = self.util.find_spec(fullname)
[all …]
Dtest_windows.py64 spec = self.machinery.WindowsRegistryFinder.find_spec('spam')
74 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
81 spec = self.machinery.WindowsRegistryFinder.find_spec(self.test_module)
Dtest_lazy.py45 def find_spec(self, name, path, target=None): member in TestingImporter
Dtest_abc.py354 def find_spec(self, fullname, path, target=None): member in MetaPathFinderFindModuleTests.finder.MetaPathSpecFinder
391 def find_spec(self, fullname, target=None): member in PathEntryFinderFindLoaderTests.finder.PathEntrySpecFinder
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_finder.py18 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name)
37 spec = self.machinery.BuiltinImporter.find_spec(name)
43 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name,
/external/python/cpython3/Lib/idlelib/
Dmainmenu.py11 from importlib.util import find_spec
116 if find_spec('turtledemo'):
Dquery.py193 spec = importlib.util.find_spec(name)
/external/python/cpython3/Lib/test/
Dtest_threaded_import.py76 def find_spec(self, name, path=None, target=None): member in Finder
91 def find_spec(self, name, path=None, target=None): member in FlushingFinder
163 finder.find_spec('')
169 flushing_finder.find_spec('')
/external/python/cpython3/Lib/
Dpkgutil.py30 find_spec = finder.find_spec
37 return find_spec(name)
493 spec = importlib.util.find_spec(fullname)
564 spec = finder.find_spec(final_name)
619 spec = importlib.util.find_spec(package)
Drunpy.py128 spec = importlib.util.find_spec(mod_name)
/external/python/cpython3/Lib/importlib/
D_bootstrap.py720 def find_spec(cls, fullname, path=None, target=None): member in BuiltinImporter
737 spec = cls.find_spec(fullname, path)
793 def find_spec(cls, fullname, path=None, target=None): member in FrozenImporter
900 find_spec = finder.find_spec
906 spec = find_spec(name, path, target)
1110 spec = BuiltinImporter.find_spec(name)
Dabc.py75 found = self.find_spec(fullname, path)
116 found = self.find_spec(fullname)
D_bootstrap_external.py677 def find_spec(cls, fullname, path=None, target=None): member in WindowsRegistryFinder
699 spec = cls.find_spec(fullname, path)
1252 spec = finder.find_spec(fullname, target)
1273 def find_spec(cls, fullname, path=None, target=None): member in PathFinder
1304 spec = cls.find_spec(fullname, path)
1346 spec = self.find_spec(fullname)
1356 def find_spec(self, fullname, target=None): member in FileFinder
Dutil.py73 def find_spec(name, package=None): function
/external/python/cpython3/Doc/reference/
Dimport.rst276 pair: finder; find_spec
282 :meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three arguments:
293 The :meth:`~importlib.abc.MetaPathFinder.find_spec()` method of meta path
307 ``mpf.find_spec("foo", None, None)`` on each meta path finder (``mpf``). After
310 ``mpf.find_spec("foo.bar", foo.__path__, None)``. Once ``foo.bar`` has been
312 ``mpf.find_spec("foo.bar.baz", foo.bar.__path__, None)``.
324 The :meth:`~importlib.abc.MetaPathFinder.find_spec` method of meta path
328 ``find_spec()``.
422 :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return a
769 :meth:`~importlib.abc.MetaPathFinder.find_spec` protocol previously
[all …]
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_finder.py15 return finder.find_spec(name, path)
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_case_sensitivity.py74 found = finder.find_spec(self.name)
Dtest_finder.py195 spec = finder.find_spec(name)
/external/python/cpython3/Doc/library/
Dimportlib.rst136 Use :func:`importlib.util.find_spec` instead.
268 .. method:: find_spec(fullname, path, target=None)
288 If :meth:`find_spec` is defined, backwards-compatible functionality is
293 :exc:`NotImplementedError`. Can use :meth:`find_spec` to provide
297 Use :meth:`find_spec` instead.
319 .. method:: find_spec(fullname, target=None)
342 If :meth:`find_spec` is defined then backwards-compatible functionality is
347 Uses :meth:`find_spec` when available to provide functionality.
350 Use :meth:`find_spec` instead.
358 Use :meth:`find_spec` instead.
[all …]
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_loader.py92 self.spec = importlib.util.find_spec(self.name)
/external/python/cpython3/Tools/i18n/
Dpygettext.py281 spec = importlib.util.find_spec(name)

12