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 _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GKR2ZZZPUIMS3IKFS2IQQRIPXI6U6NTO/ Code of Conduct: http://python.org/psf/codeofconduct/