[Pyrex] Passing c pointers to a class method

Greg Ewing greg at cosc.canterbury.ac.nz
Wed May 5 03:29:23 CEST 2004


"John (J5) Palmieri" <johnp at redhat.com>:

> Yet this spits out "Cannot convert 'void (*)' to Python object":
> 
> cdef class testclass:
>     cdef test (self, void *ptr):
>         pass

It compiles okay for me. Are you sure you didn't declare
the method with "def" rather than "cdef"?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list