Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Lib/pickletools.py

    r2 r388  
    805805                 doc="""An object representing a contiguous slice of the stack.
    806806
    807                  This is used in conjuction with markobject, to represent all
     807                 This is used in conjunction with markobject, to represent all
    808808                 of the stack following the topmost markobject.  For example,
    809809                 the POP_MARK opcode changes the stack from
     
    12151215      stack_after=[pytuple],
    12161216      proto=2,
    1217       doc="""One-tuple.
     1217      doc="""Build a one-tuple out of the topmost item on the stack.
    12181218
    12191219      This code pops one value off the stack and pushes a tuple of
    1220       length 1 whose one item is that value back onto it.  IOW:
     1220      length 1 whose one item is that value back onto it.  In other
     1221      words:
    12211222
    12221223          stack[-1] = tuple(stack[-1:])
     
    12291230      stack_after=[pytuple],
    12301231      proto=2,
    1231       doc="""One-tuple.
    1232 
    1233       This code pops two values off the stack and pushes a tuple
    1234       of length 2 whose items are those values back onto it.  IOW:
     1232      doc="""Build a two-tuple out of the top two items on the stack.
     1233
     1234      This code pops two values off the stack and pushes a tuple of
     1235      length 2 whose items are those values back onto it.  In other
     1236      words:
    12351237
    12361238          stack[-2:] = [tuple(stack[-2:])]
     
    12431245      stack_after=[pytuple],
    12441246      proto=2,
    1245       doc="""One-tuple.
    1246 
    1247       This code pops three values off the stack and pushes a tuple
    1248       of length 3 whose items are those values back onto it.  IOW:
     1247      doc="""Build a three-tuple out of the top three items on the stack.
     1248
     1249      This code pops three values off the stack and pushes a tuple of
     1250      length 3 whose items are those values back onto it.  In other
     1251      words:
    12491252
    12501253          stack[-3:] = [tuple(stack[-3:])]
     
    13681371      doc="""Read an object from the memo and push it on the stack.
    13691372
    1370       The index of the memo object to push is given by the newline-teriminated
     1373      The index of the memo object to push is given by the newline-terminated
    13711374      decimal string following.  BINGET and LONG_BINGET are space-optimized
    13721375      versions.
     
    19271930    stack = []          # crude emulation of unpickler stack
    19281931    if memo is None:
    1929         memo = {}       # crude emulation of unpicker memo
     1932        memo = {}       # crude emulation of unpickler memo
    19301933    maxproto = -1       # max protocol number seen
    19311934    markstack = []      # bytecode positions of MARK opcodes
Note: See TracChangeset for help on using the changeset viewer.