[New-bugs-announce] [issue6084] documentation of zip function is error

bones7456 report at bugs.python.org
Fri May 22 11:17:51 CEST 2009


New submission from bones7456 <bones7456 at gmail.com>:

http://docs.python.org/library/functions.html?highlight=zip#zip

In this page, the example is error:

Python 2.6.2 (r262:71600, Apr 24 2009, 10:04:30) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zipped)
>>> x == x2, y == y2
(False, False)

The last line is "(False, False)", not True.

----------
assignee: georg.brandl
components: Documentation
messages: 88182
nosy: bones7456, georg.brandl
severity: normal
status: open
title: documentation of zip function is error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6084>
_______________________________________


More information about the New-bugs-announce mailing list