class documentation
class ModuleInspect: (source)
Perform runtime introspection of modules in a separate process. Reuse the process for multiple modules for efficiency. However, if there is an error, retry using a fresh process to avoid cross-contamination of state between modules. We use a separate process to isolate us from many side effects. For example, the import of a module may kill the current process, and we want to recover from that. Always use in a with statement for proper clean-up: with ModuleInspect() as m: p = m.get_package_properties('urllib.parse')
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | close |
Free any resources used. |
Method | get |
Return some properties of a module/package using runtime introspection. |
Instance Variable | counter |
Undocumented |
Instance Variable | proc |
Undocumented |
Instance Variable | results |
Undocumented |
Instance Variable | tasks |
Undocumented |
Method | _get |
Get value from the queue. |
Method | _start |
Undocumented |