On Apr 24, 2009, at 7:17 AM, Lisandro Dalcin wrote: > On Fri, Apr 24, 2009 at 1:54 AM, Stefan Behnel > <[email protected]> wrote: >> >> Robert Bradshaw wrote: >>> On Apr 23, 2009, at 7:00 PM, Lisandro Dalcin wrote: >>>> BTW, Why this optimization is on by default? Despite the comment on >>>> Options.py, IMHO we should emulate Python semantics here. A METH_O >>>> method cannot be called like this "func(arg, **{})", but that works >>>> for methods defined in Python code. >>> >>> This optimization is on by default because it is extremely common >>> and >>> does have a noticeable impact on timings (don't recall offhand any >>> actual numbers here). Now that we have compiler directives, we >>> should >>> be using them here, but unlike the C division case I think it's a >>> bad >>> idea to change the default because it gives a (rather >>> comprehensible) >>> error rather than silently continuing with different behavior. > > OK, I agree... > >>> You're >>> the second person since this optimization was introduced well over a >>> year ago to even notice. >> > > Just because now I need that all the args of my methods can be passed > as keywords...
We'll make this into a compiler directive the next release then. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
