On 22/06/20 12:19 pm, Neil Girdhar wrote:
I'm just curious if there was a reason why Boolean was omitted from the numeric tower in the numbers library?

Python's bool type is a subclass of int for historical reasons,
not because it's conceptually a numeric type. Doing arithmetic on
it doesn't really make mathematical sense.

--
Greg
_______________________________________________
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/CMDSMDVCT5ABSLILV3U772QDLI2IUCAZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to