[issue39210] Sorting falls back to use __gt__ when __lt__ is not present
Mark Dickinson
report at bugs.python.org
Sat Jan 4 13:23:29 EST 2020
Mark Dickinson <dickinsm at gmail.com> added the comment:
Right, the HOWTO language could possibly be improved. The intended and practical message is that you *only* need to provide __lt__ everywhere for sort to work.
----------
nosy: +rhettinger, tim.peters
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39210>
_______________________________________
More information about the Python-bugs-list
mailing list