Re: [Cython] Bug in list comprehension

2015-10-16 Thread Stefan Behnel
Leandro Pereira de Lima e Silva schrieb am 16.10.2015 um 16:04: > I've think I've found a bug in Cython (or is this just a funny feature?). > The error occurs when the variable name used as source for the iteration is > also used as a value. > > Given the files test1.pyx (cython) and test2.py (pyt

[Cython] Bug in list comprehension

2015-10-16 Thread Leandro Pereira de Lima e Silva
Hello, I've think I've found a bug in Cython (or is this just a funny feature?). The error occurs when the variable name used as source for the iteration is also used as a value. Given the files test1.pyx (cython) and test2.py (python): test1.pyx: def test(): x = range(10) return [x for