]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify xrange() entry.
authorGeorg Brandl <georg@python.org>
Wed, 9 Apr 2008 07:32:07 +0000 (07:32 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 9 Apr 2008 07:32:07 +0000 (07:32 +0000)
Doc/whatsnew/3.0.rst

index 94545c542fafcbfc80bd5feb79ca98387f1ad68e..7f8ba47b36f763e4c66bd429d014e8d982b02188 100644 (file)
@@ -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.