Roundup Robot added the comment:
New changeset 2e1335245f8f by Nick Coghlan in branch 'default':
Close #18626: add a basic CLI for the inspect module
http://hg.python.org/cpython/rev/2e1335245f8f
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - committed/rejected
status:
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
Claudiu.Popa added the comment:
Hello, here's a basic patch. Currently, the header info is printed by default,
while the source can be retrieved by using --source (although I would prefer
them to be switched, the source should be shown by default and the header info
only when requested). It
Nick Coghlan added the comment:
I realised that with the module:qualname syntax, it's straightforward to
expand this beyond module introspection to arbitrary objects.
What I suggest we could output:
- a header with key module info (names taken from PEP 451):
Origin
Cached