Author steven.daprano
Recipients The Blue Wizard, docs@python, steven.daprano
Date 2019-08-11.03:43:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565495023.83.0.477156209211.issue37818@roundup.psfhosted.org>
In-reply-to
Content
bools are integers, specifically they are a subclass of int:

py> isinstance(True, int)
True
py> issubclass(bool, int)
True

so the behaviour is correct.
History
Date User Action Args
2019-08-11 03:43:43steven.dapranosetrecipients: + steven.daprano, docs@python, The Blue Wizard
2019-08-11 03:43:43steven.dapranosetmessageid: <1565495023.83.0.477156209211.issue37818@roundup.psfhosted.org>
2019-08-11 03:43:43steven.dapranolinkissue37818 messages
2019-08-11 03:43:43steven.dapranocreate