[Pyrex] Passing c pointers to a class method
Phillip J. Eby
pje at telecommunity.com
Tue May 4 20:43:05 CEST 2004
At 02:38 PM 5/4/04 -0400, John (J5) Palmieri wrote:
>Hello all,
>
>How come something like this works:
>
>cdef test (void *ptr):
> pass
>
>test (somepointer)
>
>Yet this spits out "Cannot convert 'void (*)' to Python object":
>
>cdef class testclass:
> cdef test (self, void *ptr):
> pass
>
>mytest=testclass()
>mytest.test(somepointer)
'test' isn't a classmethod, that's why.
Is there even such a thing as a cdef classmethod?
More information about the Pyrex
mailing list