On 2/21/07, John Fouhy <john at fouhy.net> wrote: > (because you are using a generator expression, and they were only > introduced in 2.4) List comprehensions were implemented in v2.0. The OP probably does not use an older version, but as far as I can see, his syntax error line uses parenthesis - not brackets - hence the error. -- - Rikard.