MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_child

Function is_child

scripts/whats_left.py:262–266  ·  view source on GitHub ↗
(module, item)

Source from the content-addressed store, hash-verified

260
261
262def is_child(module, item):
263 import inspect
264
265 item_mod = inspect.getmodule(item)
266 return item_mod is module
267
268
269def dir_of_mod_or_error(module_name, keep_other=True):

Callers 1

dir_of_mod_or_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected