Serhiy Storchaka added the comment:

The main drawback of this optimization perhaps is not tiny runtime overhead in 
common case, but the complication of the code. It adds at least 6 or 8 lines to 
every rich compare implementation.

On other hand, this optimization already is implemented for integers, strings, 
bytes and slices.

----------
nosy: +haypo

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

Reply via email to