[Cython] A bug when declare array.

yi huang yi.codeplayer at gmail.com
Sat Aug 17 12:31:14 CEST 2013


I use cython 0.19.1, when compile following code:

cdef void some_function():
    cdef char buf[sizeof(long)*8/3+6]

Got error message:

Error compiling Cython file:
------------------------------------------------------------
...
cdef void some_function():
    cdef char buf[sizeof(long)*8/3+6]
                ^
------------------------------------------------------------

/tmp/test.pyx:2:17: Variable type 'char []' is incomplete


More information about the cython-devel mailing list