[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)
True
py> issubclass(bool, int)
True
so the behaviour is correct.
----------
nosy: +steven.daprano
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37818>
_______________________________________
More information about the docs
mailing list