bpo-39947: Hide implementation detail of trashcan macros (GH-18971) · python/cpython@38965ec · GitHub
Skip to content

Commit 38965ec

Browse files
authored
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.
1 parent 309d7cc commit 38965ec

3 files changed

Lines changed: 45 additions & 15 deletions

File tree

Include/cpython/object.h

Lines changed: 18 additions & 15 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Py_TRASHCAN_BEGIN_CONDITION and Py_TRASHCAN_END macro no longer access
2+
PyThreadState attributes, but call new private _PyTrash_begin() and
3+
_PyTrash_end() functions which hide implementation details.

Objects/object.c

Lines changed: 24 additions & 0 deletions

0 commit comments

Comments
 (0)