mirror of
https://github.com/python/cpython.git
synced 2025-10-27 00:36:52 +00:00
Issue 9147: Add dis.code_info()
This commit is contained in:
parent
9887683f74
commit
eae2da1da7
4 changed files with 224 additions and 38 deletions
|
|
@ -36,6 +36,18 @@ the following command can be used to get the disassembly of :func:`myfunc`::
|
|||
The :mod:`dis` module defines the following functions and constants:
|
||||
|
||||
|
||||
.. function:: code_info(x=None)
|
||||
|
||||
Return a formatted multi-line string with detailed code object
|
||||
information for the supplied function, method, source code string
|
||||
or code object.
|
||||
|
||||
Note that the exact contents of code info strings are highly
|
||||
implementation dependent and they may change arbitrarily across
|
||||
Python VMs or Python releases.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
.. function:: dis(x=None)
|
||||
|
||||
Disassemble the *x* object. *x* can denote either a module, a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue