mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
dis.dis() also supports modules
This commit is contained in:
parent
c70815ac0f
commit
dcd0500664
1 changed files with 2 additions and 1 deletions
|
|
@ -38,7 +38,8 @@ The \module{dis} module defines the following functions and constants:
|
||||||
|
|
||||||
\begin{funcdesc}{dis}{\optional{bytesource}}
|
\begin{funcdesc}{dis}{\optional{bytesource}}
|
||||||
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
||||||
either a class, a method, a function, or a code object. For a class,
|
either a module, a class, a method, a function, or a code object.
|
||||||
|
For a module, it disassembles all functions. For a class,
|
||||||
it disassembles all methods. For a single code sequence, it prints
|
it disassembles all methods. For a single code sequence, it prints
|
||||||
one line per byte code instruction. If no object is provided, it
|
one line per byte code instruction. If no object is provided, it
|
||||||
disassembles the last traceback.
|
disassembles the last traceback.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue