[Python-checkins] r42571 - python/trunk/Include/code.h python/trunk/Include/pythonrun.h
neal.norwitz
python-checkins at python.org
Sat Feb 25 16:43:11 CET 2006
Author: neal.norwitz
Date: Sat Feb 25 16:43:10 2006
New Revision: 42571
Modified:
python/trunk/Include/code.h
python/trunk/Include/pythonrun.h
Log:
Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not removing yet.
Modified: python/trunk/Include/code.h
==============================================================================
--- python/trunk/Include/code.h (original)
+++ python/trunk/Include/code.h Sat Feb 25 16:43:10 2006
@@ -40,7 +40,10 @@
*/
#define CO_NOFREE 0x0040
-#define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */
+#if 0
+/* This is no longer used. Stopped defining in 2.5, do not re-use. */
+#define CO_GENERATOR_ALLOWED 0x1000
+#endif
#define CO_FUTURE_DIVISION 0x2000
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
Modified: python/trunk/Include/pythonrun.h
==============================================================================
--- python/trunk/Include/pythonrun.h (original)
+++ python/trunk/Include/pythonrun.h Sat Feb 25 16:43:10 2006
@@ -8,7 +8,7 @@
#endif
#define PyCF_MASK (CO_FUTURE_DIVISION)
-#define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED)
+#define PyCF_MASK_OBSOLETE (CO_NESTED)
#define PyCF_SOURCE_IS_UTF8 0x0100
#define PyCF_DONT_IMPLY_DEDENT 0x0200
More information about the Python-checkins
mailing list