[issue18626] Make "python -m inspect " dump the source of a module

2013-08-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that it will be better to output a formalized report about a module and it's contents using inspect.getmoduleinfo() and inspect.getmembers(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Eric Snow
Eric Snow added the comment: At the risk of unnecessary complication, there is also other information that could be output, depending on the referenced object (module vs. class/func via qualname). For instance, a module's __file__ would be handy. So, the output could have a "header" with the

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Nick Coghlan
New submission from Nick Coghlan: "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 notati