29 Sep
2020
29 Sep
'20
11:19 p.m.
On Mon, Sep 28, 2020 at 08:19:01PM -0700, Ben Rudiak-Gould wrote:
Maybe a singleton that supported no useful operations, not even __eq__ or __bool__, would be sufficiently inconvenient that it would only be used for defaults and "is" tests for said defaults.
NotImplemented is halfway there: it supports equality test, but as of 3.9 or 3.10, I forget which, it no longer supports use in a bool context. -- Steve