Message88182
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. |
|
Date |
User |
Action |
Args |
2009-05-22 09:17:51 | bones7456 | set | recipients:
+ bones7456, georg.brandl |
2009-05-22 09:17:51 | bones7456 | set | messageid: <1242983871.03.0.567968513766.issue6084@psf.upfronthosting.co.za> |
2009-05-22 09:17:49 | bones7456 | link | issue6084 messages |
2009-05-22 09:17:48 | bones7456 | create | |
|