robertwb / issues-import-test

0 stars 0 forks source link

Comprehension parsing bug #134

Open robertwb opened 7 years ago

robertwb commented 7 years ago

Reported by vitja on 30 Nov 2011 19:36 UTC

$ cat x1.pyx
[for i in 1, 2](i)

$ cython x1.pyx
Error compiling Cython file:
------------------------------------------------------------
...
[for i in 1, 2](i)
            ^
------------------------------------------------------------

x1.pyx:1:13: Expected ']', found ','

Migrated-From: http://trac.cython.org/ticket/757

robertwb commented 7 years ago

Comment by scoder on 9 Jan 2012 15:11 UTC That's Py2-only syntax, though. It's gone in Py3.