[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Roundup Robot
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:

[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Nick Coghlan
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

[issue18626] Make python -m inspect name meaningful

2013-09-16 Thread Claudiu.Popa
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

[issue18626] Make python -m inspect name meaningful

2013-08-17 Thread Nick Coghlan
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