[Python-checkins] python/nondist/sandbox/pickletools pickletools.py,1.18,1.19

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 26 Jan 2003 09:45:41 -0800


Update of /cvsroot/python/python/nondist/sandbox/pickletools
In directory sc8-pr-cvs1:/tmp/cvs-serv18250

Modified Files:
	pickletools.py 
Log Message:
Minor fiddling to text.


Index: pickletools.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/pickletools/pickletools.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pickletools.py	26 Jan 2003 17:29:46 -0000	1.18
--- pickletools.py	26 Jan 2003 17:45:37 -0000	1.19
***************
*** 728,732 ****
        stack_after=[pyinteger_or_bool],
        proto=0,
!       doc="""Push an integer or bool.  The argument is a decimal literal string.
  
        The intent may have been that this always fit in a short Python int,
--- 728,734 ----
        stack_after=[pyinteger_or_bool],
        proto=0,
!       doc="""Push an integer or bool.
! 
!       The argument is a newline-terminated decimal literal string.
  
        The intent may have been that this always fit in a short Python int,
***************
*** 741,745 ****
        True gets pickled as INT + "I01\\n", and False as INT + "I00\\n".
        Leading zeroes are never produced for a genuine integer.  The 2.3
!       (and later)  unpicklers special-case these and return bool instead;
        earlier unpicklers ignore the leading "0" and return the int.
        """),
--- 743,747 ----
        True gets pickled as INT + "I01\\n", and False as INT + "I00\\n".
        Leading zeroes are never produced for a genuine integer.  The 2.3
!       (and later) unpicklers special-case these and return bool instead;
        earlier unpicklers ignore the leading "0" and return the int.
        """),
***************
*** 751,755 ****
        stack_after=[pylong],
        proto=0,
!       doc="""Push a long integer.  The argument is a decimal literal string.
  
        The same as INT, except that the literal ends with 'L', and always
--- 753,757 ----
        stack_after=[pylong],
        proto=0,
!       doc="""Push a long integer.
  
        The same as INT, except that the literal ends with 'L', and always
***************
*** 793,797 ****
  
        This is a space optimization for pickling small positive ints, in
!       range(1, 2**16).
        """),
  
--- 795,800 ----
  
        This is a space optimization for pickling small positive ints, in
!       range(256, 2**16).  Integers in range(256) can also be pickled via
!       BININT2, but BININT1 instead saves a byte.
        """),
  
***************
*** 949,954 ****
        doc="""Append an object to a list.
  
!       Stack before:  ... alist anobject
!       Stack after:   ... alist+[anobject]
        """),
  
--- 952,957 ----
        doc="""Append an object to a list.
  
!       Stack before:  ... pylist anyobject
!       Stack after:   ... pylist+[anyobject]
        """),
  
***************
*** 961,966 ****
        doc="""Extend a list by a slice of stack objects.
  
!       Stack before:  ... alist markobject rest_of_stack
!       Stack after:   ... alist+rest_of_stack
        """),
  
--- 964,969 ----
        doc="""Extend a list by a slice of stack objects.
  
!       Stack before:  ... pylist markobject stackslice
!       Stack after:   ... pylist+stackslice
        """),
  
***************
*** 973,977 ****
        stack_after=[],
        proto=0,
!       doc="Discard the top stack item."),
  
      I(name='DUP',
--- 976,980 ----
        stack_after=[],
        proto=0,
!       doc="Discard the top stack item, shrinking the stack by one item."),
  
      I(name='DUP',
***************
*** 989,995 ****
        stack_after=[markobject],
        proto=0,
!       doc="""Push a marker object onto the stack.
  
!       The marker is a unique object, used by other opcodes to identify a
        region of the stack containing a variable number of objects for them
        to work on.  See markobject.doc for more detail.
--- 992,998 ----
        stack_after=[markobject],
        proto=0,
!       doc="""Push markobject onto the stack.
  
!       markobject is a unique object, used by other opcodes to identify a
        region of the stack containing a variable number of objects for them
        to work on.  See markobject.doc for more detail.
***************
*** 1002,1010 ****
        stack_after=[],
        proto=0,
!       doc="""Pop all the stack objects at and above the topmost marker object.
  
        When an opcode using a variable number of stack objects is done,
!       POP_MARK is used to remove those objects, and to remove the marker
!       object that delimited their starting position on the stack.
        """),
  
--- 1005,1013 ----
        stack_after=[],
        proto=0,
!       doc="""Pop all the stack objects at and above the topmost markobject.
  
        When an opcode using a variable number of stack objects is done,
!       POP_MARK is used to remove those objects, and to remove the markobject
!       that delimited their starting position on the stack.
        """),
  
***************
*** 1018,1022 ****
        stack_after=[anyobject],
        proto=0,
!       doc="""Push a memo object on the stack.
  
        The index of the memo object to push is given by the newline-teriminated
--- 1021,1025 ----
        stack_after=[anyobject],
        proto=0,
!       doc="""Read an object from the memo and push it on the stack.
  
        The index of the memo object to push is given by the newline-teriminated
***************
*** 1031,1035 ****
        stack_after=[anyobject],
        proto=1,
!       doc="""Push a memo object on the stack.
  
        The index of the memo object to push is given by the 1-byte unsigned
--- 1034,1038 ----
        stack_after=[anyobject],
        proto=1,
!       doc="""Read an object from the memo and push it on the stack.
  
        The index of the memo object to push is given by the 1-byte unsigned
***************
*** 1043,1047 ****
        stack_after=[anyobject],
        proto=1,
!       doc="""Push a memo object on the stack.
  
        The index of the memo object to push is given by the 4-byte signed
--- 1046,1050 ----
        stack_after=[anyobject],
        proto=1,
!       doc="""Read an object from the memo and push it on the stack.
  
        The index of the memo object to push is given by the 4-byte signed