On 22/12/20 6:24 am, Christopher Barker wrote:

What I think the OP wants, and I happen to agree, is for Booleans to not only not BE integers in the subclassing sense, but also to not behave as numbers in the. Duck Typing sense.

However, that ship has sailed. I think it would have been minimally disruptive when True and False were first introduced,

It would have been just as disruptive back then -- that's the
reason bool was made a subclass of int in the first place.

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

Reply via email to