Commit 36287811 authored by Neal Norwitz's avatar Neal Norwitz

dis.dis() also supports modules

parent 79ed0beb
...@@ -38,7 +38,8 @@ The \module{dis} module defines the following functions and constants: ...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment