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
8cb00e23
Commit
8cb00e23
authored
Aug 19, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid total dependency on the new module. This addresses the problem
reported by Greg Ball on python-dev.
parent
b446fc7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Lib/__future__.py
Lib/__future__.py
+7
-1
No files found.
Lib/__future__.py
View file @
8cb00e23
...
...
@@ -55,7 +55,13 @@ all_feature_names = [
__all__
=
[
"all_feature_names"
]
+
all_feature_names
import
new
as
_new
# for CO_xxx symbols
try
:
import
new
as
_new
# for CO_xxx symbols
except
ImportError
:
# May happen during build
class
_new
:
CO_NESTED
=
0x0010
CO_GENERATOR_ALLOWED
=
0x1000
CO_FUTURE_DIVISION
=
0x2000
class
_Feature
:
def
__init__
(
self
,
optionalRelease
,
mandatoryRelease
,
compiler_flag
):
...
...
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