From bc5f4dc86add704840cee46aba304f0f632751c3 Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi Date: Wed, 18 Dec 2024 11:14:29 +0000 Subject: [PATCH 1/2] Fix outdated comment in `Include/cpython/object.h` Updated the comment to follow the change 147cd0581e35a10204776029aeaa7fa1901056bc --- Include/cpython/object.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Include/cpython/object.h b/Include/cpython/object.h index e4797029da431e..3154cb5305b0c1 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -469,12 +469,11 @@ passed as second argument to Py_TRASHCAN_BEGIN(). PyAPI_FUNC(int) _PyTrash_begin(PyThreadState *tstate, PyObject *op); PyAPI_FUNC(void) _PyTrash_end(PyThreadState *tstate); +/* Python 3.13 private API, invoked by the Py_TRASHCAN_BEGIN(). */ PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op); PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate); -/* Python 3.10 private API, invoked by the Py_TRASHCAN_BEGIN(). */ - /* To avoid raising recursion errors during dealloc trigger trashcan before we reach * recursion limit. To avoid trashing, we don't attempt to empty the trashcan until * we have headroom above the trigger limit */ From 4423edacd04c44a84b4e1c0ee1ec8b5b975cc06d Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi Date: Mon, 13 Jan 2025 07:10:15 +0900 Subject: [PATCH 2/2] Update object.h Co-authored-by: Peter Bierma --- Include/cpython/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 3154cb5305b0c1..a26f58fe550e85 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -469,7 +469,7 @@ passed as second argument to Py_TRASHCAN_BEGIN(). PyAPI_FUNC(int) _PyTrash_begin(PyThreadState *tstate, PyObject *op); PyAPI_FUNC(void) _PyTrash_end(PyThreadState *tstate); -/* Python 3.13 private API, invoked by the Py_TRASHCAN_BEGIN(). */ +/* Invoked by the Py_TRASHCAN_BEGIN(). */ PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op); PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);