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 ethan.furman
Recipients ethan.furman, gvanrossum, josh.r, serhiy.storchaka, steven.daprano, terry.reedy, veky, xtreak
Date 2020-03-11.18:53:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I know I'm late to the party, but if


returned `NotImplemented` wouldn't that solve the problem?

    def __ge__(self, other):
        return not self.__lt__(other)


   if __lt__ returns   then __gt__ returns

     NotImplemented      NotImplemented
     True                False
     False               True

Correct code (which checks for NotImplemented) would still work, and buggy code (which just returns the bool() of NotImplemented), would then be correct.
Date User Action Args
2020-03-11 18:53:44ethan.furmansetrecipients: + ethan.furman, gvanrossum, terry.reedy, steven.daprano, serhiy.storchaka, josh.r, veky, xtreak
2020-03-11 18:53:44ethan.furmansetmessageid: <>
2020-03-11 18:53:44ethan.furmanlinkissue35712 messages
2020-03-11 18:53:44ethan.furmancreate