[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 
<https://bugs.python.org/issue42518>
___
___
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 
<https://bugs.python.org/issue42518>
___
___
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 
<https://bugs.python.org/issue42518>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Kshitish


New submission from Kshitish :

Try & Except doesn't work probably. 
In the except continue keyword doesn't work probably.

--
files: main.py
messages: 382515
nosy: blue555
priority: normal
severity: normal
status: open
title: Try and Except doesn't work properly
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49656/main.py

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



[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Kshitish


Kshitish  added the comment:

for i in range(1,11):
try:
if i == i:
print(i)
if i == 5:
continue
print(i,'poc')
except:
print("Out")

Output:

1
2
3
4
5
6
7
8
9
10


As you can see the continue keyword is not working. The out put should be like 
that:

1
2
3
4
6
7
9
10

But it is not and this is the bug because every keyword must work as their 
task. if they they not then may be the code will be affected by this 
vulnerability. 

Thank you

--
status: closed -> open
Added file: https://bugs.python.org/file49657/main.py

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



[issue44272] DeprecationWarning: The *random* parameter to shuffle() has been deprecated since Python 3.9 and will be removed in a subsequent version

2021-05-31 Thread Kshitish Kumar


New submission from Kshitish Kumar :

Code:

import random as ran


x = ran.shuffle(10,random=1)

Output:

DeprecationWarning: The *random* parameter to shuffle() has been deprecated 
since Python 3.9 and will be removed in a subsequent version.

 x = ran.shuffle(10,random=1)
  File "C:\Users\nisha\AppData\Local\Programs\Python\Python39\lib\random.py", 
line 369, in shuffle
for i in reversed(range(1, len(x))):
TypeError: object of type 'int' has no len()

--
files: main.py
messages: 394792
nosy: Kkshitish
priority: normal
severity: normal
status: open
title: DeprecationWarning: The *random* parameter to shuffle() has been 
deprecated since Python 3.9 and will be removed in a subsequent version
versions: Python 3.9
Added file: https://bugs.python.org/file50075/main.py

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



[issue44272] DeprecationWarning: The *random* parameter to shuffle() has been deprecated since Python 3.9 and will be removed in a subsequent version

2021-05-31 Thread Kshitish Kumar


Kshitish Kumar  added the comment:

I was expecting a proper result from this code. Because If you do same thing in 
other computer language. You will get a proper answer.

--

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