[docs] [issue14050] Tutorial, list.sort() and items comparability

Ezio Melotti report at bugs.python.org
Sun Feb 19 09:34:34 CET 2012


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

We could just mention that a TypeError is raised if some of the elements can't be compared. (Note that sorting a list that contains some types that cannot be compared might still succeed in some corner cases, but there's no reason to mention this).

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14050>
_______________________________________


More information about the docs mailing list