bool and int

Chris Angelico rosuav at gmail.com
Tue Jan 24 16:58:06 EST 2023


On Wed, 25 Jan 2023 at 08:22, MRAB <python at mrabarnett.plus.com> wrote:
> For backwards compatibility, bool was made a subclass of int.

Plus, it's really REALLY handy in quite a lot of situations.

> > C# is pickier, which I guess is a good thing.
>

Nope, not a good thing. Actually a highly frustrating thing on those
occasions when I have to write C# code.

ChrisA


More information about the Python-list mailing list