<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 20, 2016 at 11:51 AM, Guido van Rossum <span dir="ltr"><<a href="mailto:gvanrossum@gmail.com" target="_blank">gvanrossum@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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).</blockquote></div><br>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.</div></div>