[Python-ideas] True and False are singletons
apalala at gmail.com
Mon Mar 18 07:13:31 EDT 2019
It came to my attention that:
In the original PEP True and False are said to be singletons
https://www.python.org/dev/peps/pep-0285/, but it's not in the Data Model
This came to my attention by code wanting to own the valid values in a
if settings[MY_KEY] is True:
If True and False are singletons in the spec (and not only in the CPython
implementation), it should be prominent and well known.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas