Reported by dan on 19 Jun 2008 14:53 UTC
It seems if you have a method in a class with an argument typed to be
an "ndarray":
cdef class base:
cdef void func(self, ndarray arr): pass
and you then try to override the method in a derived class, you get
errors. Things work fine if the type of the argument is an "int", or
if both base and derived class are in the same file.
I think this happens because "ndarray" is not a cdef class kind of a
type, but comes in from an outside library -- numpy -- as a:
ctypedef extern class numpy.ndarray [PyArrayObject](object):
Reported by dan on 19 Jun 2008 14:53 UTC It seems if you have a method in a class with an argument typed to be an "ndarray":
and you then try to override the method in a derived class, you get errors. Things work fine if the type of the argument is an "int", or if both base and derived class are in the same file.
I think this happens because "ndarray" is not a cdef class kind of a type, but comes in from an outside library -- numpy -- as a:
Here is what happens when you run:
Migrated-From: http://trac.cython.org/ticket/20