[Python-checkins] r42630 - in python/trunk: Lib/__future__.py Misc/NEWS

neal.norwitz python-checkins at python.org
Tue Feb 28 00:24:50 CET 2006


Author: neal.norwitz
Date: Tue Feb 28 00:24:48 2006
New Revision: 42630

Modified:
   python/trunk/Lib/__future__.py
   python/trunk/Misc/NEWS
Log:
Finish removal of CO_GENERATOR_ALLOWED.


Modified: python/trunk/Lib/__future__.py
==============================================================================
--- python/trunk/Lib/__future__.py	(original)
+++ python/trunk/Lib/__future__.py	Tue Feb 28 00:24:48 2006
@@ -60,7 +60,7 @@
 # they're not exported in __all__, because they don't really belong to
 # this module.
 CO_NESTED            = 0x0010   # nested_scopes
-CO_GENERATOR_ALLOWED = 0x1000   # generators
+CO_GENERATOR_ALLOWED = 0        # generators (obsolete, was 0x1000)
 CO_FUTURE_DIVISION   = 0x2000   # division
 
 class _Feature:

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Tue Feb 28 00:24:48 2006
@@ -12,6 +12,9 @@
 Core and builtins
 -----------------
 
+- CO_GENERATOR_ALLOWED is no longer defined, this behavior is the default.
+  The name was removed from Include/code.h.
+
 - PEP 308: conditional expressions were added (x if cond else y).
 
 - Patch 1433928:


More information about the Python-checkins mailing list