On Tue, Sep 20, 2016 at 11:51 AM, Guido van Rossum <gvanros...@gmail.com>
> Also, I once timed it and could not show that partial was faster. This
> surprised me but it was what I measured (in one particular case).
I did similar timings on several occasions in the past and was also
surprised by the results. Lambdas are often faster than equivalent
partials. It looks like at least recent versions of Python have ways to
optimize calls to pure Python functions that are not available to functions
implemented in C or called from C.
Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/