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
58920e54
Commit
58920e54
authored
Sep 14, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the new new doesn't define CO_xxx as the old new did
parent
b82dd664
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Lib/compiler/consts.py
Lib/compiler/consts.py
+9
-1
Tools/compiler/compiler/consts.py
Tools/compiler/compiler/consts.py
+9
-1
No files found.
Lib/compiler/consts.py
View file @
58920e54
from
new
import
*
# import all the CO_xxx flags
del
classobj
,
code
,
function
,
instance
,
instancemethod
,
module
# operation flags
...
...
@@ -11,3 +10,12 @@ SC_GLOBAL = 2
SC_FREE
=
3
SC_CELL
=
4
SC_UNKNOWN
=
5
CO_OPTIMIZED
=
0x0001
CO_NEWLOCALS
=
0x0002
CO_VARARGS
=
0x0004
CO_VARKEYWORDS
=
0x0008
CO_NESTED
=
0x0010
CO_GENERATOR
=
0x0020
CO_GENERATOR_ALLOWED
=
0x1000
CO_FUTURE_DIVISION
=
0x2000
Tools/compiler/compiler/consts.py
View file @
58920e54
from
new
import
*
# import all the CO_xxx flags
del
classobj
,
code
,
function
,
instance
,
instancemethod
,
module
# operation flags
...
...
@@ -11,3 +10,12 @@ SC_GLOBAL = 2
SC_FREE
=
3
SC_CELL
=
4
SC_UNKNOWN
=
5
CO_OPTIMIZED
=
0x0001
CO_NEWLOCALS
=
0x0002
CO_VARARGS
=
0x0004
CO_VARKEYWORDS
=
0x0008
CO_NESTED
=
0x0010
CO_GENERATOR
=
0x0020
CO_GENERATOR_ALLOWED
=
0x1000
CO_FUTURE_DIVISION
=
0x2000
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