Message 194148 - Python tracker (original) (raw)
"python -m inspect " doesn't currently do anything.
It would be handy if this:
python -m inspect site
Was roughly equivalent to:
python -c "import inspect, site; print(inspect.getsource(site))"
Even better would be if it understood entry point notation so you could use "modname:qualname" to get the source code of a particular item within a module.