On 18 August 2010 03:11, Stefan Behnel <[email protected]> wrote:
>
> It also poses problems for classes that must be cdef classes because they
> wrap C values, as in pretty much all wrapper code.
>

cdef classes already are quite different. For example, instances do
not get a __dict__, nor Cython provides any kind of support for these
instances getting one (though I'm working on that).

>
>  > Perhaps we should control this with a flag.
>
> I'm not a big fan at all of changing behaviour with flags, but I'm strictly
> against doing it in cases where the resulting behaviour is not obvious.
> It's absolutely not obvious to me that a flag to make a call to a regular
> Python special method faster makes that method unavailable from Python
> code. Such an impact is too easy to get missed by tests.
>

I agree.


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to