[Cython] Constant pointers not working
Volker Mische
volker.mische at gmail.com
Tue Apr 2 19:20:46 CEST 2013
On 03/22/2013 02:47 PM, Volker Mische wrote:
> 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'
I tried to implement it myself, please let me know if that's the way to
go: https://github.com/cython/cython/pull/203
Cheers,
Volker
More information about the cython-devel
mailing list