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 line break inside list comprehension #80

Closed GoogleCodeExporter closed 9 years ago

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

onetwo = {'x':1,'y':2}
strlcomp = ['%s= %s'%(k,v) 
  for k, v in onetwo.items()]
print(strlcomp)
assert 'x= 1' in strlcomp

print('OK')

What is the expected output? What do you see instead?
['x= 1','y= 2']
OK

instead fails with syntax error:
--
SyntaxError: unterminated string literal @ 
http://www.brython.info/py_classes.js:248

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 7:18

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision 517

Original comment by pierre.q...@gmail.com on 17 Feb 2013 at 8:40