changeset: 98727:d88526aa1b29 user: Serhiy Storchaka date: Tue Oct 13 21:20:14 2015 +0300 files: Lib/pickletools.py Misc/NEWS description: Issue #25382: pickletools.dis() now outputs implicit memo index for the MEMOIZE opcode. diff -r f584dadc640f -r d88526aa1b29 Lib/pickletools.py --- a/Lib/pickletools.py Tue Oct 13 21:14:01 2015 +0300 +++ b/Lib/pickletools.py Tue Oct 13 21:20:14 2015 +0300 @@ -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 -r f584dadc640f -r d88526aa1b29 Misc/NEWS --- a/Misc/NEWS Tue Oct 13 21:14:01 2015 +0300 +++ b/Misc/NEWS Tue Oct 13 21:20:14 2015 +0300 @@ -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.