Skip to content

Commit ab51f5f

Browse files
committed
Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not removing yet.
1 parent df95cb6 commit ab51f5f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Include/code.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ typedef struct {
4040
*/
4141
#define CO_NOFREE 0x0040
4242

43-
#define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */
43+
#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
4447
#define CO_FUTURE_DIVISION 0x2000
4548

4649
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */

Include/pythonrun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "C" {
88
#endif
99

1010
#define PyCF_MASK (CO_FUTURE_DIVISION)
11-
#define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED)
11+
#define PyCF_MASK_OBSOLETE (CO_NESTED)
1212
#define PyCF_SOURCE_IS_UTF8 0x0100
1313
#define PyCF_DONT_IMPLY_DEDENT 0x0200
1414

0 commit comments

Comments
 (0)