Stefan Behnel, 08.11.2010 09:03:
> Matěj Laitl, 08.11.2010 01:13:
>> I tried hard and luckily produced partial fix for bug 583 (Wrong C
>> code generated (cdef class<   cdef class inheritance, cpdef methods,
>> pure python mode), details are in the ticket:
>> http://trac.cython.org/cython_trac/ticket/583
>>
>> Sadly, I'm clueless how to fix it completely. It would be great if a
>> fix for this bug could make it into 0.13.1 as my code [1] depends on
>> it.
>
> Your patch is a good hint, I'm looking into it.

What you do in your patch would provide a quick fix.

Personally, I think the right way to really fix this would be to finally 
refactor def functions into cdef function wrappers. That way, overriding 
pure def functions in .pxd files would simply enable the underlying cdef 
function as being callable, instead of needing to build a new one from 
scratch. And we could even override def functions as pure cdef functions by 
simply dropping the wrapper entirely.

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

Reply via email to