Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

-0 on this.  While it is true that __lt__ is used, we don't really want people 
to exploit that fact.  Doing so will get them into trouble elsewhere.  For 
example, max(seq) uses __gt__.  Also, when mixing types, a return of 
NotImplemented will trigger a call to the reflection method.  And PEP 8 
recommends that all six rich comparison operators be defined to avoid 
hard-to-find bugs.

----------
assignee: docs@python -> rhettinger
nosy: +rhettinger, tim.peters

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to