https://github.com/python/cpython/commit/f48702dade921beed3e227d2a5ac82a9ae2533d0
commit: f48702dade921beed3e227d2a5ac82a9ae2533d0
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-01-16T15:41:40Z
summary:

gh-128910: Remove `_PyTrash_begin` and `_PyTrash_end` C-API functions (#128919)

files:
A 
Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst
M Include/cpython/object.h

diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index c8c6bc97fa32ee..ba31e2464abf84 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -475,9 +475,6 @@ partially-deallocated object. To check this, the tp_dealloc 
function must be
 passed as second argument to Py_TRASHCAN_BEGIN().
 */
 
-/* Python 3.9 private API, invoked by the macros below. */
-PyAPI_FUNC(int) _PyTrash_begin(PyThreadState *tstate, PyObject *op);
-PyAPI_FUNC(void) _PyTrash_end(PyThreadState *tstate);
 
 PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, 
PyObject *op);
 PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);
diff --git 
a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst
 
b/Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst
new file mode 100644
index 00000000000000..e095ba9ebf6be4
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst
@@ -0,0 +1,2 @@
+Undocumented and unused private C-API functions ``_PyTrash_begin`` and
+``_PyTrash_end`` are removed.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to