Clarify xrange() entry.

This commit is contained in:
Georg Brandl 2008-04-09 07:32:07 +00:00
parent 37475a8d22
commit 67b8cad16a
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ language and built-in functions.
terminated prematurely. To get the old behavior of :func:`input`, use terminated prematurely. To get the old behavior of :func:`input`, use
``eval(input())``. ``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 * 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. foo(a, (b, c)): ...``. Use ``def foo(a, b_c): b, c = b_c`` instead.