[Python-checkins] CVS: python/dist/src/Misc NEWS,1.189,1.190

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 17 Jul 2001 10:22:34 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv2584

Modified Files:
	NEWS 
Log Message:
- Add news about generators.
- Change header to 2.2a1.
- Add separator between 2.2 and 2.1 news.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.189
retrieving revision 1.190
diff -C2 -r1.189 -r1.190
*** NEWS	2001/07/12 11:54:37	1.189
--- NEWS	2001/07/17 17:22:32	1.190
***************
*** 1,7 ****
! What's New in Python 2.2a0?
  ===========================
  
  Core
  
  - 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
--- 1,18 ----
! 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
***************
*** 196,199 ****
--- 207,213 ----
  - Removed the unused last_is_sticky argument from the internal
    _PyTuple_Resize().  If this affects you, you were cheating.
+ 
+ 
+ ======================================================================