]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
dis(): Not all opcodes are printable anymore, so print the repr
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 15:27:57 +0000 (15:27 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 15:27:57 +0000 (15:27 +0000)
commitd0f7c86a20e9cef8cbf2c8fb676fcc8d8a7000b4
treedbb687921cbbff2baf04022d02361e2a153eaa69
parent1be31759929c67a3f0b8d11ac8a48ab881760fa8
dis():  Not all opcodes are printable anymore, so print the repr
of the opcode character instead (but stripping the quotes).

Added a proto 2 test section for the canonical recursive-tuple case.
Note that since pickle's save_tuple() takes different paths depending on
tuple length now, beefier tests are really needed (but not in pickletools);
the "short tuple" case tried here was actually broken yesterday, and it's
subtle stuff so needs to be tested.
Lib/pickletools.py