diff options
author | Guido van Rossum <guido@python.org> | 2003-01-27 21:44:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-01-27 21:44:25 (GMT) |
commit | 5a2d8f5e9af0cbd513f02eb5576ff497e3693ffe (patch) | |
tree | 862b7a13d7b5df19f445ebc11669d5fedd9effbc /Lib/pickle.py | |
parent | bb38e306aeeb10cc0d4f9f532777c773f63ad045 (diff) | |
download | cpython-5a2d8f5e9af0cbd513f02eb5576ff497e3693ffe.zip cpython-5a2d8f5e9af0cbd513f02eb5576ff497e3693ffe.tar.gz cpython-5a2d8f5e9af0cbd513f02eb5576ff497e3693ffe.tar.bz2 |
Begin documenting protocol 2.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index d3d1dcf..79ee8af 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -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 |