[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

STINNER Victor report at bugs.python.org
Fri Mar 20 13:28:03 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

(Trashcan is somehow off-topic here, but let me comment anyway ;-))

> See for example _PyTrash_deposit_object.

I know that this one is kept for ABI backward compatibility... but the TRASHCAN API is excluded from the limited API. So I'm not sure that it is worth it to keep _PyTrash_deposit_object() in the ABI.

I modified the TRASHCAN API in Python 3.9 to no longer leak implementation details (access PyThreadState structure fields). The implementation now only uses function calls.

=> commit 38965ec5411da60d312b59be281f3510d58e0cf1

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39998>
_______________________________________


More information about the Python-bugs-list mailing list