On Oct 16, 2009, at 8:15 AM, Lisandro Dalcin wrote: > On Fri, Oct 16, 2009 at 12:06 PM, Stefan Behnel > <[email protected]> wrote: >> >> Lisandro Dalcin wrote: >>> On Fri, Oct 16, 2009 at 3:58 AM, Stefan Behnel wrote: >>>>> cdef MyClass x = foo() >>>> I agree that extension type casts should be exact and tested ones >>>> should >>>> fail for None. >>> >>> What did you meant with "exact" ? Subclasses should pass the >>> typetest, right? >> >> Sorry, sure, "anything that qualifies as a true instance of the >> checked >> class", including subclasses. >> > > BTW, that would be also the case for builtin types? IIUC, currently we > check for *exactly* the type.
No, I think that behavior should remain as is (for reasons previously documented). - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
