[Python-checkins] cpython (merge 3.2 -> default): merge with 3.2

sandro.tosi python-checkins at python.org
Sun Aug 12 10:25:24 CEST 2012


http://hg.python.org/cpython/rev/71e33d4e5b3a
changeset:   78513:71e33d4e5b3a
parent:      78511:34d5ec8a1019
parent:      78512:233673503217
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Sun Aug 12 10:25:10 2012 +0200
summary:
  merge with 3.2

files:
  Doc/tutorial/datastructures.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -297,7 +297,7 @@
 In the real world, you should prefer built-in functions to complex flow statements.
 The :func:`zip` function would do a great job for this use case::
 
-   >>> zip(*matrix)
+   >>> list(zip(*matrix))
    [(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]
 
 See :ref:`tut-unpacking-arguments` for details on the asterisk in this line.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list