Nick Coghlan added the comment:

This looks like a nice, relatively simple improvement in both speed and 
introspection support, so +1 from me.

Something I've wondered since we changed total_ordering to handle 
NotImplemented correctly is whether it would be worth exposing more of the 
*components* of rich boolean comparison operations through the operator module. 
Currently it isn't possible to access the individual steps, which is why 
handling NotImplemented incurred such a large performance hit relative to the 
previous implementation that didn't worry about it (but also potentially hit 
RecursionError if the underlying comparison operation returned NotImplemented).

----------

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

Reply via email to