[Pyrex] Type inheritance and cdef method
Jiba
jiba at tuxfamily.org
Tue Dec 23 12:50:14 CET 2003
Hi,
I'm one of the guy of Soya3D and we are converting our code from C to
Pyrex and i must say i am really impressed by Pyrex !
I'm getting problem with type inheritance in Pyrex.
The following code crashes (Pyrex generate a C file, but this file does
nt compile with GCC, and it containes "None" somewhere !)
-8<----------
cdef class Base:
pass
cdef class MyClass(Base):
cdef int cfunc(self):
return 1
-8<----------
Though if i add a cdef method to Base, it does no longer crash !
Jiba
More information about the Pyrex
mailing list