News for hackers. Stuff that matters.
Re:Python has brought computer programming to a vast new aud... by cma on Thursday July 19, 2018 @06:42PM (#17570987)
The point is they shouldn't be. Knuth argues against implicitly treating bool as int in Concrete Mathematics.
Re:Python has brought computer programming to a vast new aud... by DasIch on Friday July 20, 2018 @04:48PM (#17578784)
Agreed, however you have to take context into account. Python 2 didn't always have a bool type (granted, already a mistake), before it was introduced int was used instead. Making bool a subclass of int made it possible to use it even in combination with earlier code, which made adopting it trivial.

If bool wouldn't be a subclass of int, some projects probably would still be using int instead of bool.