[Cython] [cython-users] Bug in 0.19 (with example)

Stefan Behnel stefan_ml at behnel.de
Wed May 1 19:57:58 CEST 2013


Eric Frederich, 01.05.2013 18:59:
> I have discovered a bug in Cython 0.19
> 
> This code works in 0.15.1 but not in 0.19.
> I haven't tested it anywhere in between.
> 
> The following 3 files are listed at the end of this email.
>     blah.h
>     blah.pxd
>     test.pyx
> 
> The errors I get are the following:
> test.pyx:3:18: Not allowed in a constant expression
> test.pyx:3:18: Array dimension not integer
> test.pyx:3:20: Variable type 'char []' is incomplete
> 
> The line is:
>     cdef char[blah.FOO] x
> 
> If I do:
>     cdef char[int(blah.FOO)] x
> ... I get the following error:

Thanks for the report. Looks like a known bug, however, already reported
and fixed:

http://mail.python.org/pipermail/cython-devel/2013-May/003631.html

Stefan



More information about the cython-devel mailing list