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
466a7822
Commit
466a7822
authored
Jul 02, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the old CO_FUTURE flags can't be commented out
parent
c963731b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
Include/code.h
Include/code.h
+0
-2
Include/pythonrun.h
Include/pythonrun.h
+3
-1
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Include/code.h
View file @
466a7822
...
...
@@ -42,7 +42,6 @@ typedef struct {
*/
#define CO_NOFREE 0x0040
#if 0
/* These are no longer used. */
#define CO_GENERATOR_ALLOWED 0x1000
#define CO_FUTURE_DIVISION 0x2000
...
...
@@ -50,7 +49,6 @@ typedef struct {
#define CO_FUTURE_WITH_STATEMENT 0x8000
#define CO_FUTURE_PRINT_FUNCTION 0x10000
#define CO_FUTURE_UNICODE_LITERALS 0x20000
#endif
#define CO_FUTURE_BARRY_AS_BDFL 0x40000
...
...
Include/pythonrun.h
View file @
466a7822
...
...
@@ -7,7 +7,9 @@
extern
"C"
{
#endif
#define PyCF_MASK CO_FUTURE_BARRY_AS_BDFL
#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL)
#define PyCF_MASK_OBSOLETE 0
#define PyCF_SOURCE_IS_UTF8 0x0100
#define PyCF_DONT_IMPLY_DEDENT 0x0200
...
...
Misc/NEWS
View file @
466a7822
...
...
@@ -24,6 +24,11 @@ Core and Builtins
- Issue #4856: Remove checks for win NT.
C-API
-----
- The code flags for old __future__ features are now available again.
Library
-------
...
...
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