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

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to