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
Original issue reported on code.google.com by
d...@famillepinault.fr
on 19 Feb 2013 at 8:34