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

> If the preference is to not support this use-case ,,,

I don't really have a preference.  Was just letting you know the pros and cons. 
 I'll put together a PR with the "type(self).__lt__(self, other)" 
substitutions.  Let me know if that is the outcome you want.

> Wait, is the suggestion here that @total_ordering
> is not suitable for production?

It works fine, but as noted in the docs, the indirect code isn't as good as 
just writing-out the methods by hand.

----------

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

Reply via email to