summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-16 14:53:52 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-16 14:53:52 (GMT)
commit84305c51534482d4defd1f0df898759fbaf5c208 (patch)
tree2d4fba5ea234bcb436f43f3b39fd907704da80b4
parent0fdd385e2ce7b197e4eb6be4d2d03a115a5268ae (diff)
downloadcpython-84305c51534482d4defd1f0df898759fbaf5c208.zip
cpython-84305c51534482d4defd1f0df898759fbaf5c208.tar.gz
cpython-84305c51534482d4defd1f0df898759fbaf5c208.tar.bz2
Merged revisions 82915 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82915 | alexander.belopolsky | 2010-07-16 10:39:45 -0400 (Fri, 16 Jul 2010) | 1 line Corrected TUPLE<N> opcodes' docs. ........
-rw-r--r--Lib/pickletools.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 065498c..cfeeecb 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -1214,10 +1214,11 @@ opcodes = [
stack_before=[anyobject],
stack_after=[pytuple],
proto=2,
- doc="""One-tuple.
+ doc="""Build a one-tuple out of the topmost item on the stack.
This code pops one value off the stack and pushes a tuple of
- length 1 whose one item is that value back onto it. IOW:
+ length 1 whose one item is that value back onto it. In other
+ words:
stack[-1] = tuple(stack[-1:])
"""),
@@ -1228,10 +1229,11 @@ opcodes = [
stack_before=[anyobject, anyobject],
stack_after=[pytuple],
proto=2,
- doc="""One-tuple.
+ doc="""Build a two-tuple out of the top two items on the stack.
- This code pops two values off the stack and pushes a tuple
- of length 2 whose items are those values back onto it. IOW:
+ This code pops two values off the stack and pushes a tuple of
+ length 2 whose items are those values back onto it. In other
+ words:
stack[-2:] = [tuple(stack[-2:])]
"""),
@@ -1242,10 +1244,11 @@ opcodes = [
stack_before=[anyobject, anyobject, anyobject],
stack_after=[pytuple],
proto=2,
- doc="""One-tuple.
+ doc="""Build a three-tuple out of the top three items on the stack.
- This code pops three values off the stack and pushes a tuple
- of length 3 whose items are those values back onto it. IOW:
+ This code pops three values off the stack and pushes a tuple of
+ length 3 whose items are those values back onto it. In other
+ words:
stack[-3:] = [tuple(stack[-3:])]
"""),