[issue18626] Make "python -m inspect <name>" meaningful

Nick Coghlan report at bugs.python.org
Sun Sep 22 14:49:39 CEST 2013


Nick Coghlan added the comment:

Thanks for the initial patch Claudiu - I tweaked it a bit before committing it.

* as you suggested, displaying the source is the default, with a --details option to display the formatted info instead
* changed the displayed details (e.g. only displaying the search path for packages, displaying the line number for classes and functions
* a few tweaks to the actual implementation (e.g. using partition over find, avoiding tracebacks for a couple of likely user errors)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18626>
_______________________________________


More information about the Python-bugs-list mailing list