[Pyrex] type inheritance and foreward declarations

Jiba jiba at tuxfamily.org
Thu Dec 25 17:41:17 CET 2003


By experimenting with Pyrex, i've discovered that foreward declarations
must mention type ineritance, as following :

cdef class A
cdef class B(A)

cdef class A:
  pass

cdef class B(A):
  pass


I think this should be mentioned in the documentation (in
"Forward-declaring extension types" in chapter "Extension types")

Jiba




More information about the Pyrex mailing list