New submission from Nick Coghlan:

"python -m inspect <name>" 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.

----------
components: Library (Lib)
messages: 194148
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Make "python -m inspect <name>" dump the source of a module
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to