On 15 December 2015 at 23:11, Victor Stinner <[email protected]> wrote:
> I guess that the optimizations on "in" and "is" operators are fine,
> but optimizations on all other operations must be removed to not break
> the Python semantic.

Right, this is why we have functools.total_ordering as a class
decorator to "fill in" the other comparison implementations based on
the ones in the class body.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to