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

Function readmodule_ex

Lib/pyclbr.py:112–119  ·  view source on GitHub ↗

Return a dictionary with all functions and classes in module. Search for module in PATH + sys.path. If possible, include imported superclasses. Do this by reading source, without importing (and executing) it.

(module, path=None)

Source from the content-addressed store, hash-verified

110 return res
111
112def readmodule_ex(module, path=None):
113 """Return a dictionary with all functions and classes in module.
114
115 Search for module in PATH + sys.path.
116 If possible, include imported superclasses.
117 Do this by reading source, without importing (and executing) it.
118 """
119 return _readmodule(module, path or [])
120
121
122def _readmodule(module, path, inpackage=None):

Callers 1

_mainFunction · 0.85

Calls 1

_readmoduleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…