[Cython] Constant pointers not working

Volker Mische volker.mische at gmail.com
Fri Mar 22 14:47:52 CET 2013


Hi all,

I was excited to see that 'const' is finally supported, but constant
pointers are not. Here's an example with the corresponding error:

Error compiling Cython file:
------------------------------------------------------------
...
cdef extern int foo(const int *const bar)
                                    ^
------------------------------------------------------------

const.pxd:1:37: Expected ')', found 'bar'

Cheers,
  Volker


More information about the cython-devel mailing list