diff options
author | Georg Brandl <georg@python.org> | 2008-04-09 07:32:07 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-04-09 07:32:07 (GMT) |
commit | 67b8cad16a2497c627aaa515851d3f9d637a5aec (patch) | |
tree | fa637d584ccf93294bfedda382fa55d533955834 /Doc/whatsnew/3.0.rst | |
parent | 37475a8d227ba64afdf06378d1bbdf336d891dd8 (diff) | |
download | cpython-67b8cad16a2497c627aaa515851d3f9d637a5aec.zip cpython-67b8cad16a2497c627aaa515851d3f9d637a5aec.tar.gz cpython-67b8cad16a2497c627aaa515851d3f9d637a5aec.tar.bz2 |
Clarify xrange() entry.
Diffstat (limited to 'Doc/whatsnew/3.0.rst')
-rw-r--r-- | Doc/whatsnew/3.0.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index 94545c5..7f8ba47 100644 --- a/Doc/whatsnew/3.0.rst +++ b/Doc/whatsnew/3.0.rst @@ -301,7 +301,8 @@ language and built-in functions. 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. |