[Python-Dev] [Python-checkins] cpython (3.2): zip() returns an iterator, make a list() of it; thanks to Martin from docs@
Chris Jerdonek
chris.jerdonek at gmail.com
Sun Aug 12 14:40:36 CEST 2012
On Sun, Aug 12, 2012 at 1:25 AM, sandro.tosi <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/233673503217
> changeset: 78512:233673503217
> user: Sandro Tosi <sandro.tosi at gmail.com>
> date: Sun Aug 12 10:24:50 2012 +0200
> summary:
> zip() returns an iterator, make a list() of it; thanks to Martin from docs@
> diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
> - >>> zip(*matrix)
> + >>> list(zip(*matrix))
> [(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]
Is there a reason we don't run the doctests in the Doc/ folder's .rst
files as part of regrtest (e.g. via DocFileSuite), or is that
something we just haven't gotten around to doing?
--Chris
More information about the Python-Dev
mailing list