1 parent a75d2f6 commit 11d2c8fCopy full SHA for 11d2c8f
2 files changed
Include/code.h
@@ -40,7 +40,10 @@ typedef struct {
40
*/
41
#define CO_NOFREE 0x0040
42
43
-#define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */
+#if 0
44
+/* This is no longer used. Stopped defining in 2.5, do not re-use. */
45
+#define CO_GENERATOR_ALLOWED 0x1000
46
+#endif
47
#define CO_FUTURE_DIVISION 0x2000
48
49
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
Include/pythonrun.h
@@ -8,7 +8,7 @@ extern "C" {
8
#endif
9
10
#define PyCF_MASK (CO_FUTURE_DIVISION)
11
-#define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED)
+#define PyCF_MASK_OBSOLETE (CO_NESTED)
12
#define PyCF_SOURCE_IS_UTF8 0x0100
13
#define PyCF_DONT_IMPLY_DEDENT 0x0200
14
0 commit comments