From: Georg Brandl Date: Wed, 9 Apr 2008 07:32:07 +0000 (+0000) Subject: Clarify xrange() entry. X-Git-Tag: v3.0a5~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67b8cad16a2497c627aaa515851d3f9d637a5aec;p=thirdparty%2FPython%2Fcpython.git Clarify xrange() entry. --- diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index 94545c542faf..7f8ba47b36f7 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.