]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add Py_tp_finalize slot (closes #24345)
authorBenjamin Peterson <benjamin@python.org>
Mon, 1 Jun 2015 15:12:48 +0000 (10:12 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 1 Jun 2015 15:12:48 +0000 (10:12 -0500)
Patch from Petr Viktorin.

Include/typeslots.h
Misc/NEWS
Objects/typeslots.inc

index f56749dbedbd890ad334f2479b00b2828c895e1e..a89d73b823f25e33e064827e8600b94d1445720d 100644 (file)
@@ -79,3 +79,4 @@
 #define Py_am_await 77
 #define Py_am_aiter 78
 #define Py_am_anext 79
+#define Py_tp_finalize 80
index 0d3a0f0d79375080f0f68ef9e023e3d173042e36..2de47f713a829abf0a01d1268da3faaa8e5be060 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@ Release date: 2015-07-05
 Core and Builtins
 -----------------
 
+- Issue #24345: Add Py_tp_finalize slot for the stable ABI.
+
 Library
 -------
 
index bcbe0af3b8f417f7e5dc56e8a0afe29a55c603d8..dc750cc0c41975963fb3af1a94286c6a2e356e5f 100644 (file)
@@ -78,3 +78,4 @@ offsetof(PyHeapTypeObject, as_number.nb_inplace_matrix_multiply),
 offsetof(PyHeapTypeObject, as_async.am_await),
 offsetof(PyHeapTypeObject, as_async.am_aiter),
 offsetof(PyHeapTypeObject, as_async.am_anext),
+offsetof(PyHeapTypeObject, ht_type.tp_finalize),