Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0969a9f

Browse files
committed
add Py_tp_finalize slot (closes #24345)
Patch from Petr Viktorin.
1 parent 55a57b0 commit 0969a9f

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

Include/typeslots.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@
7979
#define Py_am_await 77
8080
#define Py_am_aiter 78
8181
#define Py_am_anext 79
82+
#define Py_tp_finalize 80

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Release date: 2015-07-05
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #24345: Add Py_tp_finalize slot for the stable ABI.
14+
1315
Library
1416
-------
1517

Objects/typeslots.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ offsetof(PyHeapTypeObject, as_number.nb_inplace_matrix_multiply),
7878
offsetof(PyHeapTypeObject, as_async.am_await),
7979
offsetof(PyHeapTypeObject, as_async.am_aiter),
8080
offsetof(PyHeapTypeObject, as_async.am_anext),
81+
offsetof(PyHeapTypeObject, ht_type.tp_finalize),

0 commit comments

Comments
 (0)