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

2021-10-04 Thread Narendra Madurkar
Narendra Madurkar added the comment: True is a boolean so ~True should return False according to me. True is not the same as 1 -- ___ Python tracker <https://bugs.python.org/issue45

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

2021-10-04 Thread Narendra Madurkar
New submission from Narendra Madurkar : ~(True) returns -2 ~(False) returns -1 -- messages: 403190 nosy: nmadurkar priority: normal severity: normal status: open title: ~(True) and ~(False) gives incorrect result ___ Python tracker <ht