>>> True + 2
>>> False + 2
bool is a subclass of
int, and therefor satisfies the "is-a" relation, meaning a bool is-a int.
issubclass(bool, int) => True isinstance(True, int) => True
In practice this means that in any operation which works on an int, the int can be substituted with a bool.