summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2010-08-17 08:03:36 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2010-08-17 08:03:36 (GMT)
commiteae2da1da78bd13331c4a64ae02fb825eba6777e (patch)
tree59e88dddd02d09d74e99e5221844da740d977d06 /Doc
parent9887683f7407b2d4ec0e0ff1ff9b9a26137d0724 (diff)
downloadcpython-eae2da1da78bd13331c4a64ae02fb825eba6777e.zip
cpython-eae2da1da78bd13331c4a64ae02fb825eba6777e.tar.gz
cpython-eae2da1da78bd13331c4a64ae02fb825eba6777e.tar.bz2
Issue 9147: Add dis.code_info()
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 1d5b223..aa2c552 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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