On 18 August 2010 15:57, Robert Bradshaw <[email protected]> wrote:
> On Wed, Aug 18, 2010 at 8:53 AM, Carl Witty <[email protected]> wrote:
>> On Tue, Aug 17, 2010 at 11:11 PM, Stefan Behnel <[email protected]> wrote:
>>> Robert Bradshaw, 18.08.2010 06:27:
>>>  > 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.
>>
>> More possibilities: control __getattr__ by a special declaration, that
>> is either required (is this possible?) or strongly encouraged to be
>> placed directly on the __getattr__ method rather than scoped over a
>> larger area.  (Surely we could come up with a name that addresses
>> Stefan's concerns?
>
> I was just thinking, I really like the idea of a decorator, but that
> does make it harder to apply on a large scale compared to a flag (e.g.
> for all of Sage). Of course, maybe that's a good thing.
>

I would add the decorator/directive, but not document it in any way,
and perhaps add a big warning in the source code that this is
experimental. Then Sage could enable it, so Sage is happy. We have
plenty of time to think about better ways to fix this...



-- 
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