[issue45368] ~(True) and ~(False) gives incorrect result

Eric V. Smith report at bugs.python.org
Tue Oct 5 00:40:36 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

What were you expecting?

I think those are correct. See:
>>> ~1
-2
>>> ~0
-1

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45368>
_______________________________________


More information about the Python-bugs-list mailing list