[issue42518] Error Message

2020-12-01 Thread Paul Moore


Paul Moore  added the comment:

You need to learn about chained comparisons in Python. This is not a bug. 
Please stop reopening it.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-12-01 Thread Kshitish


Kshitish  added the comment:

Look tell why you close this
 

In the argument:
print (5 + 2 == 7 and 10 <= 1232 != 10 ^ 100 <= 100)

10 <= 1232 != 10 ^ 100 <= 100

10 <= 1232 is true
10 ^ 100 <= 100 is false

These two argument compares by != 
So, this statement must be true. 

Overall: print (5 + 2 == 7 and 10 <= 1232 != 10 ^ 100 <= 100)

This is the argument is true but is print false.

--
resolution: not a bug -> 
status: closed -> open
type: behavior -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-12-01 Thread Christian Heimes


Change by Christian Heimes :


--
resolution:  -> not a bug
status: open -> closed
type: security -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-12-01 Thread Kshitish


Kshitish  added the comment:

Please do not talk like behave properly. I know here I am wrong but it is not 
way to talk to some one like that. I respect your knowledge but maintain your 
language. Okay! 

I send you new file with full research. Please check it out and thank you

--
resolution: not a bug -> 
status: closed -> open
type: behavior -> security
Added file: https://bugs.python.org/file49641/main.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-11-30 Thread Eryk Sun


Change by Eryk Sun :


--
components:  -Windows

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-11-30 Thread Eryk Sun


Change by Eryk Sun :


--
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-11-30 Thread Eric V. Smith


Eric V. Smith  added the comment:

This appears to be similar to issue42488, which it looks like you also 
reported, with a different account.

It's not clear to me why you expect the output to be False. But in any event, 
this is not a bug in Python.

>>> 100 ^ 1000
908

Please do not create issues on the bug tracker without doing some research. 
You're wasting volunteer's time.

--
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42518] Error Message

2020-11-30 Thread Kshitish


New submission from Kshitish :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com