[Python-checkins] cpython: Issue #25382: pickletools.dis() now outputs implicit memo index for the
serhiy.storchaka
python-checkins at python.org
Tue Oct 13 14:20:51 EDT 2015
https://hg.python.org/cpython/rev/d88526aa1b29
changeset: 98727:d88526aa1b29
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Oct 13 21:20:14 2015 +0300
summary:
Issue #25382: pickletools.dis() now outputs implicit memo index for the
MEMOIZE opcode.
files:
Lib/pickletools.py | 1 +
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -2440,6 +2440,7 @@
if opcode.name in ("PUT", "BINPUT", "LONG_BINPUT", "MEMOIZE"):
if opcode.name == "MEMOIZE":
memo_idx = len(memo)
+ markmsg = "(as %d)" % memo_idx
else:
assert arg is not None
memo_idx = arg
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -56,6 +56,9 @@
Library
-------
+- Issue #25382: pickletools.dis() now outputs implicit memo index for the
+ MEMOIZE opcode.
+
- Issue #25357: Add an optional newline paramer to binascii.b2a_base64().
base64.b64encode() uses it to avoid a memory copy.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list