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. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
