[New-bugs-announce] [issue18626] Make "python -m inspect <name>" dump the source of a module

Nick Coghlan report at bugs.python.org
Fri Aug 2 05:12:40 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18626>
_______________________________________


More information about the New-bugs-announce mailing list