Kaydet (Commit) dbc517c2 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #25382: pickletools.dis() now outputs implicit memo index for the

MEMOIZE opcode.
üst ca77aef3
......@@ -2440,6 +2440,7 @@ def dis(pickle, out=None, memo=None, indentlevel=4, annotate=0):
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
......
......@@ -56,6 +56,9 @@ Core and Builtins
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment