[issue45542] Using multiple comparison operators can cause performance issues

2021-10-20 Thread Maja
Change by Maja : -- keywords: +patch pull_requests: +27377 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29109 ___ Python tracker <https://bugs.python.org/issu

[issue45542] Using multiple comparison operators can cause performance issues

2021-10-20 Thread Maja
New submission from Maja : For example: def f(x): return 1 < x < 3 will be slower than: def f(x): return 1 < x and x < 3 The first function will generate following bytecode: 0 LOAD_CONST 1 (1) 2 LOAD_FAST

[issue25450] Save path automatically choses C:\Windows\system32

2015-10-20 Thread Maja Tomic
New submission from Maja Tomic: I'm teaching kids to code in Python. Today we had two boys, one with Windows 8, the other one with Windows 10. In both cases Python 3.5 was installed and the automatic path where files are saved was C:\Windows\system32. This wasn't possible, since it