22.06.20 03:19, Neil Girdhar пише:
I'm just curious if there was a reason why Boolean was omitted from the numeric tower in the numbers library? It seems that builtins.bool and numpy.bool_ would both be elements of Boolean, and Boolean itself would be Integral?
The abstract class for booleans is useless, because all objects can be used in boolean context, and all boolean operations (and, or, not) work with arbitrary objects. So Boolean would be identical to objects.
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/RUQBDQJGDQ5MQBIWEVNULIMMB3EHOJVP/ Code of Conduct: http://python.org/psf/codeofconduct/
