[issue43879] Add native_id to PyThreadState

2021-04-17 Thread Gabriele Tornetta
New submission from Gabriele Tornetta : I would like to propose adding the native_id field to the PyThreadState structure to store the result of PyThread_get_thread_native_id. On some systems, like Linux, it is not easy to retrieve this information from outside of the Python interpreter

[issue42796] tempfile doesn't seem to play nicely with os.chdir on Windows

2021-01-01 Thread Gabriele Tornetta
Gabriele Tornetta added the comment: That makes sense, but I wonder what the "right" behaviour should be in this case. Surely the infinite recursion should be fixed at the very minimum. Perhaps the code on Windows could be enhanced to catch the case whereby one is trying to dele

[issue42796] tempfile doesn't seem to play nicely with os.chdir on Windows

2020-12-31 Thread Gabriele Tornetta
New submission from Gabriele Tornetta : The following script causes havoc on Windows while it works as expected on Linux ~~~ python import os import tempfile def test_chdir(): with tempfile.TemporaryDirectory() as tempdir: os.chdir(tempdir) ~~~ Running the above on Windows

[issue39506] operator |= on sets does not behave like the update method

2020-01-31 Thread Gabriele Tornetta
New submission from Gabriele Tornetta : def outer(): a=set() def inner(): a |= set(["A"]) inner() return a print(outer()) Traceback (most recent call last): File "main.py", line 8, in print(outer()) File "main.py", line 5, in outer in

[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Gabriele Tornetta
Gabriele Tornetta added the comment: Are there any PRs already for this issue? I couldn't find any on GitHub. Also, is the plan to branch the fix down to at least 3.6? -- nosy: +Gabriele Tornetta ___ Python tracker <https://bugs.python.

[issue34030] easy_install from Python 3.7 (Win64) cannot install modules

2018-07-03 Thread Gabriele Tornetta
New submission from Gabriele Tornetta : When trying to install a module (pycrypto in this case), easy_install fails with the following error (run via Git Bash) $ easy_install pycrypto-2.6.win-amd64-py3.3.exe Processing pycrypto-2.6.win-amd64-py3.3.exe error: [WinError 32] The process cannot