sgzwiz / brython

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

tuples and list error #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following lines are ok :

days = ("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche")
day = days[0]

Following lines should give same result as above but generate an error :

day = ("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", 
"Dimanche")[0]

SyntaxError: syntax error @ http://localhost/brython/brython.js:3582 

Same problem with a list.
Seems to be ok with a dict.

Original issue reported on code.google.com by d...@famillepinault.fr on 19 Feb 2013 at 8:34

GoogleCodeExporter commented 9 years ago
Merci Nicolas, fixed in revision 626

Original comment by pierre.q...@gmail.com on 4 Mar 2013 at 2:45