[Python-checkins] python/nondist/sandbox/pickletools pickletools.py,1.19,1.20
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sun, 26 Jan 2003 09:57:15 -0800
Update of /cvsroot/python/python/nondist/sandbox/pickletools
In directory sc8-pr-cvs1:/tmp/cvs-serv22842
Modified Files:
pickletools.py
Log Message:
Added LIST.
Index: pickletools.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/pickletools/pickletools.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** pickletools.py 26 Jan 2003 17:45:37 -0000 1.19
--- pickletools.py 26 Jan 2003 17:57:12 -0000 1.20
***************
*** 968,971 ****
--- 968,987 ----
"""),
+ I(name='LIST',
+ code='l',
+ arg=None,
+ stack_before=[markobject, stackslice],
+ stack_after=[pylist],
+ proto=0,
+ doc="""Build a list out of the topmost stack slice, after markobject.
+
+ All the stack entries following the topmost markobject are placed into
+ a single Python list, which single list object replaces all of the
+ stack from the topmost markobject onward. For example,
+
+ Stack before: ... markobject 1 2 3 'abc'
+ Stack after: ... [1, 2, 3, 'abc']
+ """),
+
# Stack manipulation.
***************
*** 1174,1188 ****
I(name='INST',
code='i',
- arg=None,
- stack_before=[],
- stack_after=[],
- proto=0,
- doc="""XXX One-line description goes here.
-
- XXX Doc body goes here.
- """),
-
- I(name='LIST',
- code='l',
arg=None,
stack_before=[],
--- 1190,1193 ----