File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,15 +42,13 @@ typedef struct {
4242*/
4343#define CO_NOFREE 0x0040
4444
45- #if 0
4645/* These are no longer used. */
4746#define CO_GENERATOR_ALLOWED 0x1000
4847#define CO_FUTURE_DIVISION 0x2000
4948#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
5049#define CO_FUTURE_WITH_STATEMENT 0x8000
5150#define CO_FUTURE_PRINT_FUNCTION 0x10000
5251#define CO_FUTURE_UNICODE_LITERALS 0x20000
53- #endif
5452
5553#define CO_FUTURE_BARRY_AS_BDFL 0x40000
5654
Original file line number Diff line number Diff line change 77extern "C" {
88#endif
99
10- #define PyCF_MASK CO_FUTURE_BARRY_AS_BDFL
10+ #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
11+ CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
12+ CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL)
1113#define PyCF_MASK_OBSOLETE 0
1214#define PyCF_SOURCE_IS_UTF8 0x0100
1315#define PyCF_DONT_IMPLY_DEDENT 0x0200
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ Core and Builtins
2424
2525- Issue #4856: Remove checks for win NT.
2626
27+ C-API
28+ -----
29+
30+ - The code flags for old __future__ features are now available again.
31+
2732Library
2833-------
2934
You can’t perform that action at this time.
0 commit comments