On Sun, Mar 5, 2017 at 9:12 PM MRAB <pyt...@mrabarnett.plus.com> wrote:
> > Although it's true that both programmers and Python might treat 10 as > functionally identical to 10.0, in practice the numbers that are being > added to the list probably come from some code that returns integers > /or/ floats, rather than a mixture. > Yes, exactly. So we can see how the homogeneity assumption is a reasonable one to make; unless you're defining custom compares (uncommon), I don't see where you would ever be sorting a heterogeneous list except for the int/float case.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/