[Cython] cannot compile derived class? (cython 0.11.1)
Robert Bradshaw
robertwb at math.washington.edu
Fri Apr 17 20:01:00 CEST 2009
On Apr 17, 2009, at 3:54 AM, Riccardo Murri wrote:
> Hello,
>
> I cannot get Cython 0.11.1 to compile the following simple example::
>
> $ cat a.pxd
> cdef class A(object)
> cdef class B(A)
>
> $ cat a.pyx
> cdef class A(object):
> pass
>
> cdef class B(A):
> pass
>
> $ cat c.pyx
> from a cimport B
>
> cdef class C(B):
> pass
[...]
> Is this a bug or am I doing something wrong?
No, I think this is a bug. However, does it work if you write
cdef class A(object):
pass
cdef class B(A):
pass
in your .pxd?
- Robert
More information about the Cython-dev
mailing list