list comparison vs integer comparison, which is more efficient?

Chris Angelico rosuav at
Sun Jan 4 13:25:46 CET 2015

On Sun, Jan 4, 2015 at 11:17 PM, austin aigbe <eshikafe at> wrote:
> However, it took a shorter time (0.004s) with 24 function calls than your code (0.005s) which took just 13 function calls to execute.
> Why is this?

That looks to me like noise in your stats. One ULP in timing stats?
Not something to base *anything* on.


More information about the Python-list mailing list