]> granicus.if.org Git - python/commit
dis(): This had a problem with proto 0 pickles, in that POP sometimes
authorTim Peters <tim.peters@gmail.com>
Wed, 29 Jan 2003 20:12:21 +0000 (20:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 29 Jan 2003 20:12:21 +0000 (20:12 +0000)
commitc1c2b3e0e2af6eb05346b4908f4c4d56618fb7b6
treea966c28559109bf571bc8d82409ad8af4cbfea67
parent5d9113d8be81596bc93f2b1a37f57e5110d39a77
dis():  This had a problem with proto 0 pickles, in that POP sometimes
popped a MARK, but without stack emulation the disassembler couldn't
know that, and subsequent indentation got hosed.

Now the disassembler does do enough stack emulation to catch this.  While
I was at it, also added lots of sanity checks for other stack operations,
and correct use of the memo.  This goes (I think) a long way toward being
a "pickle verifier" now too.
Lib/pickletools.py