[Python-3000-checkins] r62240 - python/branches/py3k/Doc/whatsnew/3.0.rst
georg.brandl
python-3000-checkins at python.org
Wed Apr 9 09:32:07 CEST 2008
Author: georg.brandl
Date: Wed Apr 9 09:32:07 2008
New Revision: 62240
Modified:
python/branches/py3k/Doc/whatsnew/3.0.rst
Log:
Clarify xrange() entry.
Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst Wed Apr 9 09:32:07 2008
@@ -301,7 +301,8 @@
terminated prematurely. To get the old behavior of :func:`input`, use
``eval(input())``.
-* :func:`xrange` renamed to :func:`range`.
+* :func:`xrange` renamed to :func:`range`, so :func:`range` will no longer
+ produce a list but an iterable yielding integers when iterated over.
* PEP 3113: Tuple parameter unpacking removed. You can no longer write ``def
foo(a, (b, c)): ...``. Use ``def foo(a, b_c): b, c = b_c`` instead.
More information about the Python-3000-checkins
mailing list