changeset: 96450:5a354de919aa branch: 3.5 parent: 96448:bbb3a3129c12 user: Benjamin Peterson date: Mon Jun 01 10:12:48 2015 -0500 files: Include/typeslots.h Misc/NEWS Objects/typeslots.inc description: add Py_tp_finalize slot (closes #24345) Patch from Petr Viktorin. diff -r bbb3a3129c12 -r 5a354de919aa Include/typeslots.h --- a/Include/typeslots.h Mon Jun 01 09:46:57 2015 +0300 +++ b/Include/typeslots.h Mon Jun 01 10:12:48 2015 -0500 @@ -79,3 +79,4 @@ #define Py_am_await 77 #define Py_am_aiter 78 #define Py_am_anext 79 +#define Py_tp_finalize 80 diff -r bbb3a3129c12 -r 5a354de919aa Misc/NEWS --- a/Misc/NEWS Mon Jun 01 09:46:57 2015 +0300 +++ b/Misc/NEWS Mon Jun 01 10:12:48 2015 -0500 @@ -10,6 +10,8 @@ Core and Builtins ----------------- +- Issue #24345: Add Py_tp_finalize slot for the stable ABI. + Library ------- diff -r bbb3a3129c12 -r 5a354de919aa Objects/typeslots.inc --- a/Objects/typeslots.inc Mon Jun 01 09:46:57 2015 +0300 +++ b/Objects/typeslots.inc Mon Jun 01 10:12:48 2015 -0500 @@ -78,3 +78,4 @@ offsetof(PyHeapTypeObject, as_async.am_await), offsetof(PyHeapTypeObject, as_async.am_aiter), offsetof(PyHeapTypeObject, as_async.am_anext), +offsetof(PyHeapTypeObject, ht_type.tp_finalize),