sgzwiz / brython

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

Regression: do not support string literal as source in list comprehension at release 20130217 #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

assert 'n' in [cardinal for cardinal in 'nesw']
print('OK')

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

instead raises syntax error:

SyntaxError: missing : after property id @ 
http://www.brython.info/py_classes.js:260

What version of the product are you using? On what operating system?
Brython version 1.1.20130217-084411
Linux Mint 14

Please provide any additional information below.
works fine in Brython version 1.0.20130214-215612

Original issue reported on code.google.com by ca...@nce.ufrj.br on 17 Feb 2013 at 8:18

GoogleCodeExporter commented 9 years ago
Ok, fixed in revision 519

Original comment by pierre.q...@gmail.com on 17 Feb 2013 at 9:03