summaryrefslogtreecommitdiffstats
path: root/Lib/__future__.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-15 21:08:29 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-15 21:08:29 (GMT)
commitb09f7ed6235783fca27a4f8730c4c33e0f53c16c (patch)
treed76806c53fd83557378dcd7395ce5309f707eb15 /Lib/__future__.py
parent045ca7ae72368ce65fe7debbd343cf8133eea5e4 (diff)
downloadcpython-b09f7ed6235783fca27a4f8730c4c33e0f53c16c.zip
cpython-b09f7ed6235783fca27a4f8730c4c33e0f53c16c.tar.gz
cpython-b09f7ed6235783fca27a4f8730c4c33e0f53c16c.tar.bz2
Preliminary support for "from __future__ import generators" to enable
the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
Diffstat (limited to 'Lib/__future__.py')
-rw-r--r--Lib/__future__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/__future__.py b/Lib/__future__.py
index 8510ceb..65416ae 100644
--- a/Lib/__future__.py
+++ b/Lib/__future__.py
@@ -67,3 +67,4 @@ class _Feature:
`self.getMandatoryRelease()` + ")"
nested_scopes = _Feature((2, 1, 0, "beta", 1), (2, 2, 0, "alpha", 0))
+generators = _Feature((2, 2, 0, "alpha", 1), (2, 3, 0, "final", 0))