sgzwiz / brython

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

Fails short circuit logic with tuple #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
t = (1,2)
assert t and t, 'Failed short circuit with tuple'
print('Ok')

What is the expected output? What do you see instead?
Ok

instead:

RuntimeError: obj.items is undefined
module '__main__' line 2
assert t and t, 'Failed short circuit with tuples'

What version of the product are you using? On what operating system?
Brython version 1.1.20130306-211707
Linux Mint 14 Nadia

Please provide any additional information below.

Original issue reported on code.google.com by ca...@nce.ufrj.br on 7 Mar 2013 at 11:58

GoogleCodeExporter commented 9 years ago
Thank you, the bug was fixed in rev 683

Original comment by pierre.q...@gmail.com on 11 Mar 2013 at 8:23