Ticket #776 (closed defect: invalid)
Support extension type inheritance in pure python mode (@cclass)
|Reported by:||valmynd||Owned by:||somebody|
|Component:||Pure Python Mode||Keywords:|
The following doesn't work:
@cython.cclass class BaseClass(object): attr = cython.declare(unicode) # ... (see attachement) @cython.cclass class Subclass(BaseClass): pass print(core.Subclass().attr) # raises AttributeError: 'core.Subclass' object has no attribute 'attr'
I tried with cython 0.15 and trunc (github). I think a proper behaviour would be to let the @cython.cclass annotation do the same thing as if i would write "cdef class" in non-pure-py-mode, but I don't know much about the internals of how pure-python mode is handled.