[issue37865] tempfile.NamedTemporaryFile() raises exception on close() when file is absent

2019-08-15 Thread Andrei Pashkin
New submission from Andrei Pashkin : Here is an example: import tempfile import os with tempfile.NamedTemporaryFile() as temp: os.remove(temp.name) And here is an error it produces: Traceback (most recent call last): File "test.py", line 6, in os.remove(temp.name)

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
New submission from Andrei Pashkin : To me it seems like Advanced Debugger Support C-API doesn't make sense without HEAD_LOCK() and HEAD_UNLOCK() which are private right now. When researching how C-API works I've found this comment in the source code: https://github.com/python/cp

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
Andrei Pashkin added the comment: Here is what I mean by "Advanced Debugger Support" API: https://docs.python.org/dev/c-api/init.html#advanced-debugger-support -- ___ Python tracker <https://bugs.python.o