Home
last modified time | relevance | path

Searched refs:find_spec (Results 1 – 25 of 49) 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/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
118 if find_spec('turtledemo'):
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py406 def find_spec(name, path=None, target=None): return name, path, target member in FindSpecTests.FakeMetaFinder
417 found = self.util.find_spec(name)
429 found = self.util.find_spec(name)
439 self.util.find_spec(name)
448 found = self.util.find_spec(name)
461 self.util.find_spec(name)
468 self.util.find_spec(name))
472 self.assertIsNone(self.util.find_spec('nevergoingtofindthismodule'))
479 spec = self.util.find_spec(fullname)
484 spec_again = self.util.find_spec(fullname)
[all …]
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('')
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_abc.py354 def find_spec(self, fullname, path, target=None): member in MetaPathFinderFindModuleTests.finder.MetaPathSpecFinder
372 found = finder.find_spec('blah', 'blah', None)
379 found = finder.find_spec(name, path, None)
388 found = finder.find_spec('blah', None)
404 def find_spec(self, fullname, target=None): member in PathEntryFinderFindLoaderTests.finder.PathEntrySpecFinder
Dtest_lazy.py45 def find_spec(self, name, path, target=None): member in TestingImporter
/external/python/cpython3/Lib/
Dpkgutil.py31 find_spec = finder.find_spec
38 return find_spec(name)
494 spec = importlib.util.find_spec(fullname)
565 spec = finder.find_spec(final_name)
620 spec = importlib.util.find_spec(package)
/external/python/cpython3/Lib/importlib/
D_bootstrap.py737 def find_spec(cls, fullname, path=None, target=None): member in BuiltinImporter
754 spec = cls.find_spec(fullname, path)
812 def find_spec(cls, fullname, path=None, target=None): member in FrozenImporter
919 find_spec = finder.find_spec
925 spec = find_spec(name, path, target)
1135 spec = BuiltinImporter.find_spec(name)
Dabc.py76 found = self.find_spec(fullname, path)
117 found = self.find_spec(fullname)
D_bootstrap_external.py739 def find_spec(cls, fullname, path=None, target=None): member in WindowsRegistryFinder
761 spec = cls.find_spec(fullname, path)
1321 spec = finder.find_spec(fullname, target)
1342 def find_spec(cls, fullname, path=None, target=None): member in PathFinder
1373 spec = cls.find_spec(fullname, path)
1428 spec = self.find_spec(fullname)
1438 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.rst278 pair: finder; find_spec
284 :meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three arguments:
295 The :meth:`~importlib.abc.MetaPathFinder.find_spec()` method of meta path
309 ``mpf.find_spec("foo", None, None)`` on each meta path finder (``mpf``). After
312 ``mpf.find_spec("foo.bar", foo.__path__, None)``. Once ``foo.bar`` has been
314 ``mpf.find_spec("foo.bar.baz", foo.bar.__path__, None)``.
326 The :meth:`~importlib.abc.MetaPathFinder.find_spec` method of meta path
330 ``find_spec()``.
423 :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return a
770 :meth:`~importlib.abc.MetaPathFinder.find_spec` protocol previously
[all …]
/external/tensorflow/tensorflow/python/tools/
Dmodule_util.py59 spec = importlib.util.find_spec(name_split[0])
/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.py78 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)
290 If :meth:`find_spec` is defined, backwards-compatible functionality is
295 :exc:`NotImplementedError`. Can use :meth:`find_spec` to provide
299 Use :meth:`find_spec` instead.
321 .. method:: find_spec(fullname, target=None)
345 If :meth:`find_spec` is defined then backwards-compatible functionality is
350 Uses :meth:`find_spec` when available to provide functionality.
353 Use :meth:`find_spec` instead.
361 Use :meth:`find_spec` instead.
[all …]
/external/python/jinja/tests/
Dtest_loader.py357 def find_spec(self, name, path=None, target=None): member in test_pep_451_import_hook.ImportHook
361 spec = importlib.machinery.PathFinder.find_spec(name)
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpcio_tools/grpc_tools/
Dprotoc.py150 def find_spec(self, fullname, path, target=None): member in ProtoFinder
/external/python/cpython3/Lib/test/
Dtest_doctest.py2673 def find_spec(self, fullname, path, target=None): member in TestImporter

12