]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39947: Hide implementation detail of trashcan macros (GH-18971)
authorVictor Stinner <vstinner@python.org>
Fri, 13 Mar 2020 15:51:52 +0000 (16:51 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Mar 2020 15:51:52 +0000 (16:51 +0100)
commit38965ec5411da60d312b59be281f3510d58e0cf1
tree337294fec36de620386a08d0a5e917f63a6ba0e3
parent309d7cc5df4e2bf3086c49eb2b1b56b929554500
bpo-39947: Hide implementation detail of trashcan macros (GH-18971)

Py_TRASHCAN_BEGIN_CONDITION and Py_TRASHCAN_END macro no longer
access PyThreadState attributes, but call new private
_PyTrash_begin() and _PyTrash_end() functions which hide
implementation details.
Include/cpython/object.h
Misc/NEWS.d/next/C API/2020-03-12-23-47-57.bpo-39947.-nCdFV.rst [new file with mode: 0644]
Objects/object.c