Re: Small change to utils.functional.curry

2006-09-07 Thread Michael Spencer
Marc D.M. wrote: > On Wed, 2006-09-06 at 22:49 -0700, Michael Spencer wrote: >> If you're really hunting for speed, there is a significant boost available >> in >> the common special case of a python function curried with one positional >> argument. In this

Re: Small change to utils.functional.curry

2006-09-07 Thread Michael Spencer
Marc D.M. wrote: > On Thu, 2006-09-07 at 13:28 -0500, Adrian Holovaty wrote: >> On 9/7/06, Michael Spencer <[EMAIL PROTECTED]> wrote: >> >>> If you're really hunting for speed, there is a significant boost available >>> in >>> the comm

Re: Small change to utils.functional.curry

2006-09-06 Thread Michael Spencer
Adrian Holovaty wrote: > On 9/6/06, Martin <[EMAIL PROTECTED]> wrote: >> def curry(fct, *args, **kwargs): >> def _curried(*moreargs, **morekwargs): >> return fct (* (args+moreargs), **dict(kwargs, ** morekwargs)) >> return _curried >> >> It's just a performance issue (saving a few