diff -r e910ea39253f Lib/pickletools.py --- a/Lib/pickletools.py Sun Oct 11 23:03:47 2015 -0700 +++ b/Lib/pickletools.py Mon Oct 12 12:44:41 2015 +0300 @@ -2440,6 +2440,7 @@ def dis(pickle, out=None, memo=None, ind 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