MCPcopy Create free account
hub / github.com/catboost/catboost / is_package

Method is_package

library/python/runtime_py3/__res.py:579–586  ·  view source on GitHub ↗

Check if fullname is a package. Raise ImportError if fullname is not found

(self, fullname)

Source from the content-addressed store, hash-verified

577 pass
578
579 def is_package(self, fullname):
580 """Check if fullname is a package. Raise ImportError if fullname is not found"""
581 path = self._cache_module_path(fullname)
582 if isinstance(path, set):
583 return True
584 if isinstance(path, str):
585 return False
586 raise ImportError(fullname)
587
588 def iter_modules(self, package_prefix, prefix):
589 paths = self._cache_module_path(package_prefix.rstrip('.'))

Callers 2

get_module_pathMethod · 0.95
iter_modulesMethod · 0.95

Calls 2

_cache_module_pathMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected