MCPcopy Index your code
hub / github.com/python/cpython / _is_stdlib_module

Method _is_stdlib_module

Lib/_pyrepl/_module_completer.py:165–167  ·  view source on GitHub ↗
(self, module_info: pkgutil.ModuleInfo)

Source from the content-addressed store, hash-verified

163 if self.is_suggestion_match(module_name, prefix)]
164
165 def _is_stdlib_module(self, module_info: pkgutil.ModuleInfo) -> bool:
166 return (isinstance(module_info.module_finder, FileFinder)
167 and module_info.module_finder.path == self._stdlib_path)
168
169 def find_attributes(self, path: str, prefix: str) -> tuple[list[str], CompletionAction | None]:
170 """Find all attributes of module 'path' that start with 'prefix'."""

Callers 2

_find_modulesMethod · 0.95
_maybe_import_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected