summaryrefslogtreecommitdiffstats
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-06-11 22:43:06 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-06-11 22:43:06 (GMT)
commitcc313061a5b45c12e9772e2f9f2ae623fc00e31d (patch)
tree2671b4f3883c561c60e1578d4b4e86590842b79e /Lib/pickletools.py
parent1e637b7373c6a183524b2bfa16d7702ef451e632 (diff)
downloadcpython-cc313061a5b45c12e9772e2f9f2ae623fc00e31d.zip
cpython-cc313061a5b45c12e9772e2f9f2ae623fc00e31d.tar.gz
cpython-cc313061a5b45c12e9772e2f9f2ae623fc00e31d.tar.bz2
Issue 2917: Merge the pickle and cPickle module.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 7bc9c67..1dd45da 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -2079,11 +2079,12 @@ _dis_test = r"""
70: t TUPLE (MARK at 49)
71: p PUT 5
74: R REDUCE
- 75: V UNICODE 'def'
- 80: p PUT 6
- 83: s SETITEM
- 84: a APPEND
- 85: . STOP
+ 75: p PUT 6
+ 78: V UNICODE 'def'
+ 83: p PUT 7
+ 86: s SETITEM
+ 87: a APPEND
+ 88: . STOP
highest protocol among opcodes = 0
Try again with a "binary" pickle.
@@ -2115,11 +2116,12 @@ Try again with a "binary" pickle.
49: t TUPLE (MARK at 37)
50: q BINPUT 5
52: R REDUCE
- 53: X BINUNICODE 'def'
- 61: q BINPUT 6
- 63: s SETITEM
- 64: e APPENDS (MARK at 3)
- 65: . STOP
+ 53: q BINPUT 6
+ 55: X BINUNICODE 'def'
+ 63: q BINPUT 7
+ 65: s SETITEM
+ 66: e APPENDS (MARK at 3)
+ 67: . STOP
highest protocol among opcodes = 1
Exercise the INST/OBJ/BUILD family.