[issue42456] Logical Error

2020-12-08 Thread Nishant Gautam
Nishant Gautam added the comment: a = 10 b = 10 if (a >= b) & (a & b) & (a == b): print("Yes") else: print("No") Output: No This is the bug because all then condition in if is true but it print No, This is the vulnerability of this code. -- resolution: not a bu

[issue42456] Logical Error

2020-12-08 Thread Tim Peters
Tim Peters added the comment: Please ask for help on StackOverflow or the general Python mailing list. Your understanding of the operations is incorrect. "&" is NOT a logical operator ("and" is). It's a bitwise operator on integers. >>> 10 & 10 10 >>> bin(10) '0b1010' The last bit is 0, so

[issue42567] Enum: manually call __init_subclass__ after members are added

2020-12-08 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22576 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23714 ___ Python tracker

[issue39791] New `files()` api from importlib_resources.

2020-12-08 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 8.0 -> 9.0 pull_requests: +22577 pull_request: https://github.com/python/cpython/pull/23715 ___ Python tracker ___ _

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2020-12-08 Thread mattip
mattip added the comment: It seems the approach that "The code for sysconfig.get_config_var() has a pretty clear intent: it will try to cast its return value to an int." has been accepted as true even though other parts of the code assumed the returned value was a string, and the CPython cod

[issue31904] Python should support VxWorks RTOS

2020-12-08 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +22578 pull_request: https://github.com/python/cpython/pull/23716 ___ Python tracker ___ _

<    1   2