sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

unpacking list of lists errors out #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. matrix = [
[1, 2, 3, 4],
[5, 6, 7, 8],
[9, 10, 11, 12],
]

2. transposed = zip(*matrix)

3.

What is the expected output? What do you see instead?
[(1, 5, 9), (2, 6, 10), (3, 7, 11), (4, 8, 12)]

I get an error instead:

ExecutionError: arguments[i].__item__ is not a function
module '__main__' line 23
transposed = zip(*matrix) @ file:///home/fdion/brython/brython.js:3580

Please use labels and text to provide additional information.

Original issue reported on code.google.com by francois...@gmail.com on 23 Jan 2013 at 5:13

GoogleCodeExporter commented 9 years ago
Fixed in version 1.1

Original comment by pierre.q...@gmail.com on 16 Feb 2013 at 5:26