This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Dennis Sweeney, glyph, rhettinger
Date 2021-08-06.04:21:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628223668.32.0.00683432738482.issue44605@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2021-08-06 04:21:08rhettingersetrecipients: + rhettinger, glyph, Dennis Sweeney
2021-08-06 04:21:08rhettingersetmessageid: <1628223668.32.0.00683432738482.issue44605@roundup.psfhosted.org>
2021-08-06 04:21:08rhettingerlinkissue44605 messages
2021-08-06 04:21:08rhettingercreate