diff options
author | Victor Stinner <vstinner@python.org> | 2021-06-23 13:51:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 13:51:47 (GMT) |
commit | db532a09990c837ec1348e6e6bd2719f5d4a8216 (patch) | |
tree | f5b93ef99f6faba98468bad23f53bcde2dda0369 /PC/python3dll.c | |
parent | 2a396d65b8e63300ff05e217adacf0765c502ba3 (diff) | |
download | cpython-db532a09990c837ec1348e6e6bd2719f5d4a8216.zip cpython-db532a09990c837ec1348e6e6bd2719f5d4a8216.tar.gz cpython-db532a09990c837ec1348e6e6bd2719f5d4a8216.tar.bz2 |
bpo-39947: Remove old private trashcan C API functions (GH-26869)
Remove 4 C API private trashcan functions which were only kept for
the backward compatibility of the stable ABI with Python 3.8 and
older, since the trashcan API was not usable with the limited C API
on Python 3.8 and older. The trashcan API was excluded from the
limited C API in Python 3.9.
Removed functions:
* _PyTrash_deposit_object()
* _PyTrash_destroy_chain()
* _PyTrash_thread_deposit_object()
* _PyTrash_thread_destroy_chain()
The trashcan C API was never usable with the limited C API, since old
trashcan macros accessed directly PyThreadState members like
"_tstate->trash_delete_nesting", whereas the PyThreadState structure
is opaque in the limited C API.
Exclude also the PyTrash_UNWIND_LEVEL constant from the C API.
The trashcan C API was modified in Python 3.9 by commit
38965ec5411da60d312b59be281f3510d58e0cf1 and in Python 3.10 by commit
ed1a5a5baca8f61e9a99c5be3adc16b1801514fe to hide implementation
details.
Diffstat (limited to 'PC/python3dll.c')
-rwxr-xr-x | PC/python3dll.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c index 378669c..0ebb56e 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -37,10 +37,6 @@ EXPORT_FUNC(_PyObject_NewVar) EXPORT_FUNC(_PyState_AddModule) EXPORT_FUNC(_PyThreadState_Init) EXPORT_FUNC(_PyThreadState_Prealloc) -EXPORT_FUNC(_PyTrash_deposit_object) -EXPORT_FUNC(_PyTrash_destroy_chain) -EXPORT_FUNC(_PyTrash_thread_deposit_object) -EXPORT_FUNC(_PyTrash_thread_destroy_chain) EXPORT_FUNC(Py_AddPendingCall) EXPORT_FUNC(Py_AtExit) EXPORT_FUNC(Py_BuildValue) |