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 <1583952824.68.0.232094368062.issue35712@roundup.psfhosted.org>
In-reply-to
Content
I know I'm late to the party, but if

  bool(NotImplemented)

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

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

then

   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.
History
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: <1583952824.68.0.232094368062.issue35712@roundup.psfhosted.org>
2020-03-11 18:53:44ethan.furmanlinkissue35712 messages
2020-03-11 18:53:44ethan.furmancreate