]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40170: Hide impl detail of Py_TRASHCAN_BEGIN macro (GH-23235)
authorHai Shi <shihai1992@gmail.com>
Tue, 24 Nov 2020 22:03:31 +0000 (06:03 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Nov 2020 22:03:31 +0000 (23:03 +0100)
commited1a5a5baca8f61e9a99c5be3adc16b1801514fe
treef3db72407b31e7a94b025ab181455df83d770780
parent0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1
bpo-40170: Hide impl detail of Py_TRASHCAN_BEGIN macro (GH-23235)

The Py_TRASHCAN_BEGIN macro no longer accesses PyTypeObject attributes,
but now can get the condition by calling the new private
_PyTrash_cond() function which hides implementation details.
Include/cpython/object.h
Misc/NEWS.d/next/C API/2020-11-13-01-40-28.bpo-40170.uh8lEf.rst [new file with mode: 0644]
Objects/object.c