There was a discussion a while back ( a year or so?? ) on Python-ideas that introduced the idea of having more "sentinel-like" singletons in Python -- right now, we only have None.
I can't remember the context, but the consensus seemed to be that it was easy to create a custom sentinel object, and it was not worth adding more "official" ones to the language. But this conversation reminded me about that, and while I do agree that we don't need more that are elevated to the status of None, maybe it would be good to have a couple (or only MISSING) in the standard library somewhere "central" for everyone to use. "central" rather than in, say, dataclasses.
I'm not sure where that should be, the operator module, maybe??
Ayway, if someone were to put one of the nifty implementations being discussed here in the stdlib --I'd use it :-)
-CHB
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython