I have some older code that used to run with pyrex without complaint, but now
the following
cdef extern from "listobject.h":
ctypedef class __builtin__.list [object PyListObject]:
pass
causes a warning
> warning: C:\code\users\robin\_tex_wrap.pyx:144:1: list already a builtin
> Cython type
however, I cannot remove the above code as that causes an error at my class
declaration
> cdef class ObjectList(list):
what's the correct cython way to inherit from a list or other builtin? I have
looked in the extension_types section, but am no wiser.
--
Robin Becker
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev