summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-17 17:22:32 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-17 17:22:32 (GMT)
commit55a78992daed1005d537697ac344703d8dbf3f5e (patch)
tree6c0824fbe842da29e475603994e434990cd35231 /Misc
parent1385a57b85ee4fabf044bf8e2293bba908ece627 (diff)
downloadcpython-55a78992daed1005d537697ac344703d8dbf3f5e.zip
cpython-55a78992daed1005d537697ac344703d8dbf3f5e.tar.gz
cpython-55a78992daed1005d537697ac344703d8dbf3f5e.tar.bz2
- Add news about generators.
- Change header to 2.2a1. - Add separator between 2.2 and 2.1 news.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS16
1 files changed, 15 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7e0f425..feb6f87 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1,8 +1,19 @@
-What's New in Python 2.2a0?
+What's New in Python 2.2a1?
===========================
Core
+- Generators were added; this is a new way to create an iterator (see
+ below) using what looks like a simple function containing one of
+ more 'yield' statements. See PEP 255. Since this adds a new
+ keyword to the language, this feature must be enabled by including a
+ future statement: "from __future__ import generators" (see PEP 236).
+ Generators will become a standard feature in a future release
+ (probably 2.3). Without this future statement, 'yield' remains an
+ ordinary identifier, but a warning is issued each time it is used.
+ (These warnings currently don't conform to the warnings framework of
+ PEP 230; we intend to fix this in 2.2a2.)
+
- The UTF-16 codec was modified to be more RFC compliant. It will now
only remove BOM characters at the start of the string and then
only if running in native mode (UTF-16-LE and -BE won't remove a
@@ -197,6 +208,9 @@ C API
_PyTuple_Resize(). If this affects you, you were cheating.
+======================================================================
+
+
What's New in Python 2.1 (final)?
=================================