[Python-ideas] INSANE FLOAT PERFORMANCE!!!

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 12 18:44:59 EDT 2016


Paul Moore wrote:
> What I'm *not* quite clear on is why Python 3's change to reject
> comparisons between unrelated types makes this optimisation possible.

I think the idea was that it's likely to be *useful* a higher
proportion of the time, because Python 3 programmers have to
be careful that the types they're sorting are compatible.

I'm not sure how true that is -- just because you *could*
sort lists containing a random selection of types in Python
2 doesn't necessarily mean it was done often.

-- 
Greg


More information about the Python-ideas mailing list