Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
44f51ac7
Commit
44f51ac7
authored
Jan 28, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added one-line comments to the proto 2 opcodes.
parent
9989fabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Lib/pickle.py
Lib/pickle.py
+14
-14
No files found.
Lib/pickle.py
View file @
44f51ac7
...
...
@@ -133,20 +133,20 @@ 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)
PROTO
=
'
\
x80
'
NEWOBJ
=
'
\
x81
'
EXT1
=
'
\
x82
'
EXT2
=
'
\
x83
'
EXT4
=
'
\
x84
'
TUPLE1
=
'
\
x85
'
TUPLE2
=
'
\
x86
'
TUPLE3
=
'
\
x87
'
NEWTRUE
=
'
\
x88
'
NEWFALSE
=
'
\
x89
'
LONG1
=
'
\
x8a
'
LONG4
=
'
\
x8b
'
# 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
__all__
.
extend
([
x
for
x
in
dir
()
if
re
.
match
(
"[A-Z][A-Z0-9_]+$"
,
x
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment