[docs] Bug in part 5 of the Python 3 tutorial

Sandro Tosi sandro.tosi at gmail.com
Wed Aug 15 21:48:12 CEST 2012


Hello Anton

On Wed, Jul 18, 2012 at 3:34 PM, Anton Eliasson <devel at antoneliasson.se> wrote:
>     >>> zip(*matrix)
>     <zip object at 0x1053098>
>
> However, in the tutorial the zip function returns a list of tuplets like
> this:
>
>     >>> zip(*matrix)
>     [(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]
>
> In order to get that result, I have to do this in my installation:
>
>     >>> list(zip(*matrix))
>     [(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]
>

Thanks - I've fixed this problem in the Python 3.x documentation some days ago.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list