summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-05-06 13:59:20 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-05-06 13:59:20 (GMT)
commitb39fd0c9b8dc6683924205265ff43cc597d1dfb9 (patch)
treeb12d71e0b726b4b3e3c96ba229b0573a084df473 /Doc/whatsnew
parent9d351332a7b65e8e03725bc469b7989ccd68143f (diff)
downloadcpython-b39fd0c9b8dc6683924205265ff43cc597d1dfb9.zip
cpython-b39fd0c9b8dc6683924205265ff43cc597d1dfb9.tar.gz
cpython-b39fd0c9b8dc6683924205265ff43cc597d1dfb9.tar.bz2
Issue #11816: multiple improvements to the dis module
* get_instructions generator * ability to redirect output to a file * Bytecode and Instruction abstractions Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.4.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 9774241..c6b1645 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -152,6 +152,21 @@ Improved Modules
================
+dis
+---
+
+The :mod:`dis` module is now built around an :class:`Instruction` class that
+provides details of individual bytecode operations and a
+:func:`get_instructions` iterator that emits the Instruction stream for a
+given piece of Python code. The various display tools in the :mod:`dis`
+module have been updated to be based on these new components.
+
+The new :class:`dis.Bytecode` class provides an object-oriented API for
+inspecting bytecode, both in human-readable form and for iterating over
+instructions.
+
+(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:`11816`)
+
doctest
-------