[New-bugs-announce] [issue42518] Error Message

Kshitish report at bugs.python.org
Tue Dec 1 01:37:14 EST 2020


New submission from Kshitish <nishantgautam930 at gmail.com>:

print (5 + 2 == 7 and 10 <= 1232 and 100 ^ 1000 >= 128) # Incorrect 

  Output: True

This argument should be false but it prints true. This is the logical error vulnerability. Try this code in another language too. You find out they print false because the argument is false but unfortunately Python prints true. Because Python does not understand this.

----------
components: Windows
files: main.py
messages: 382216
nosy: blue555, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Error Message
versions: Python 3.8
Added file: https://bugs.python.org/file49640/main.py

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


More information about the New-bugs-announce mailing list