[docs] [issue37818] Behaviors of binary bitwise operators contradicting documentation

Steven D'Aprano report at bugs.python.org
Sat Aug 10 23:43:43 EDT 2019

Steven D'Aprano <steve+python at pearwood.info> added the comment:

bools are integers, specifically they are a subclass of int:

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

so the behaviour is correct.

nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the docs mailing list