[Python-checkins] python/dist/src/Lib pickle.py,1.80,1.81

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Mon, 27 Jan 2003 16:22:16 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv26183/Lib

Modified Files:
	pickle.py 
Log Message:
Added one-line comments to the proto 2 opcodes.


Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** pickle.py	28 Jan 2003 00:13:19 -0000	1.80
--- pickle.py	28 Jan 2003 00:22:12 -0000	1.81
***************
*** 134,151 ****
  FALSE           = 'I00\n'  # not an opcode; see INT docs in pickletools.py
  
! # Protocol 2 (not yet implemented) (XXX comments will be added later)
  
! PROTO           = '\x80'
! NEWOBJ          = '\x81'
! EXT1            = '\x82'
! EXT2            = '\x83'
! EXT4            = '\x84'
! TUPLE1          = '\x85'
! TUPLE2          = '\x86'
! TUPLE3          = '\x87'
! NEWTRUE         = '\x88'
! NEWFALSE        = '\x89'
! LONG1           = '\x8a'
! LONG4           = '\x8b'
  
  
--- 134,151 ----
  FALSE           = 'I00\n'  # not an opcode; see INT docs in pickletools.py
  
! # Protocol 2 (not yet implemented).
  
! PROTO           = '\x80'  # identify pickle protocol
! NEWOBJ          = '\x81'  # build object by applying cls.__new__ to argtuple
! EXT1            = '\x82'  # push object from extension registry; 1-byte index
! EXT2            = '\x83'  # ditto, but 2-byte index
! EXT4            = '\x84'  # ditto, but 4-byte index
! TUPLE1          = '\x85'  # build 1-tuple from stack top
! TUPLE2          = '\x86'  # build 2-tuple from two topmost stack items
! TUPLE3          = '\x87'  # build 3-tuple from three topmost stack items
! NEWTRUE         = '\x88'  # push True
! NEWFALSE        = '\x89'  # push False
! LONG1           = '\x8a'  # push long from < 256 bytes
! LONG4           = '\x8b'  # push really big long