]> granicus.if.org Git - python/commitdiff
Finish removal of CO_GENERATOR_ALLOWED.
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 27 Feb 2006 23:24:48 +0000 (23:24 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 27 Feb 2006 23:24:48 +0000 (23:24 +0000)
Lib/__future__.py
Misc/NEWS

index 8940a95aeee36f4e8be9e8be2ca92511795c78b3..fc4745973634b7e40ad876052a91791480413398 100644 (file)
@@ -60,7 +60,7 @@ __all__ = ["all_feature_names"] + all_feature_names
 # 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:
index 6738809ecf0487f95d9b3c13f76f1b8adb678fa0..4e16038deb72922cf7eaa5282c33207d7511b8c3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.5 alpha 1?
 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: