Daniel Yarlett wrote:
> A fairly brief question: how does one get a Cython class to inherit from 
> a Python class defined in another file? Say I have class A defined in 
> foo.py, and I want to define a class, B, in a separate .pyx file, that 
> inherits from A. In my .pyx file I currently have something like the 
> following:
> 
> from foo import A
> ...
> cdef class B(A):
> ...
> 

What about:

   from foo cimport A
            ^

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

Reply via email to