Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55a7899

Browse files
committed
- Add news about generators.
- Change header to 2.2a1. - Add separator between 2.2 and 2.1 news.
1 parent 1385a57 commit 55a7899

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
What's New in Python 2.2a0?
1+
What's New in Python 2.2a1?
22
===========================
33

44
Core
55

6+
- Generators were added; this is a new way to create an iterator (see
7+
below) using what looks like a simple function containing one of
8+
more 'yield' statements. See PEP 255. Since this adds a new
9+
keyword to the language, this feature must be enabled by including a
10+
future statement: "from __future__ import generators" (see PEP 236).
11+
Generators will become a standard feature in a future release
12+
(probably 2.3). Without this future statement, 'yield' remains an
13+
ordinary identifier, but a warning is issued each time it is used.
14+
(These warnings currently don't conform to the warnings framework of
15+
PEP 230; we intend to fix this in 2.2a2.)
16+
617
- The UTF-16 codec was modified to be more RFC compliant. It will now
718
only remove BOM characters at the start of the string and then
819
only if running in native mode (UTF-16-LE and -BE won't remove a
@@ -197,6 +208,9 @@ C API
197208
_PyTuple_Resize(). If this affects you, you were cheating.
198209

199210

211+
======================================================================
212+
213+
200214
What's New in Python 2.1 (final)?
201215
=================================
202216

0 commit comments

Comments
 (0)