Begin documenting protocol 2.

This commit is contained in:
Guido van Rossum 2003-01-27 21:44:25 +00:00
parent bb38e306ae
commit 5a2d8f5e9a
2 changed files with 304 additions and 0 deletions

View file

@ -127,6 +127,22 @@ BINFLOAT = 'G' # push float; arg is 8-byte float encoding
TRUE = 'I01\n' # not an opcode; see INT docs in pickletools.py
FALSE = 'I00\n' # not an opcode; see INT docs in pickletools.py
# Protocol 2 (not yet implemented) (XXX comments will be added later)
NEWOBJ = '\x81'
PROTO = '\x80'
EXT2 = '\x83'
EXT1 = '\x82'
TUPLE1 = '\x85'
EXT4 = '\x84'
TUPLE3 = '\x87'
TUPLE2 = '\x86'
NEWFALSE = '\x89'
NEWTRUE = '\x88'
LONG2 = '\x8b'
LONG1 = '\x8a'
LONG4 = '\x8c'
__all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$",x)])
del x