summaryrefslogtreecommitdiffstats
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-28 05:12:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-01-28 05:12:08 (GMT)
commit81098ac1c8c88f9f1dcf7511555d2ad1f7124575 (patch)
tree84c45ec34de1c4adf20c8268b49c2ce4b2b9ff15 /Lib/pickletools.py
parentfdc03462b3e0796ae6474da6f0f9844773d1da8f (diff)
downloadcpython-81098ac1c8c88f9f1dcf7511555d2ad1f7124575.zip
cpython-81098ac1c8c88f9f1dcf7511555d2ad1f7124575.tar.gz
cpython-81098ac1c8c88f9f1dcf7511555d2ad1f7124575.tar.bz2
Comments.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index a2ba09d..d41bada 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -106,7 +106,7 @@ text mode pickles, and sometimes faster too; e.g., BININT represents a 4-byte
int as 4 bytes following the opcode, which is cheaper to unpickle than the
(perhaps) 11-character decimal string attached to INT. Protocol 1 also added
a number of opcodes that operate on many stack elements at once (like APPENDS
-and SETITEMS).
+and SETITEMS), and "shortcut" opcodes (like EMPTY_DICT and EMPTY_TUPLE).
The third major set of additions came in Python 2.3, and is called "protocol
2". This added:
@@ -1148,6 +1148,8 @@ opcodes = [
Stack before: ... pylist anyobject
Stack after: ... pylist+[anyobject]
+
+ although pylist is really extended in-place.
"""),
I(name='APPENDS',
@@ -1160,6 +1162,8 @@ opcodes = [
Stack before: ... pylist markobject stackslice
Stack after: ... pylist+stackslice
+
+ although pylist is really extended in-place.
"""),
I(name='LIST',