The “object sentinel” trick.
How to define an “illegal” value for a variable that’s different from all “legal” values that could be in that variable. So it’s used as a signal. (Hint: It’s not None)
#python
https://t.co/XLVK8jcEds http://twitter.com/NielsRoscher/status/1125513655431368704