diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-06-01 15:12:48 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-06-01 15:12:48 (GMT) |
commit | 0969a9f8abcf98bb43ea77b1dd050426adcfb4f7 (patch) | |
tree | e01ffc7880ab655dd93ee169ce8761a4ea50df9a | |
parent | 55a57b07667e9636a048deadac332551f433d28d (diff) | |
download | cpython-0969a9f8abcf98bb43ea77b1dd050426adcfb4f7.zip cpython-0969a9f8abcf98bb43ea77b1dd050426adcfb4f7.tar.gz cpython-0969a9f8abcf98bb43ea77b1dd050426adcfb4f7.tar.bz2 |
add Py_tp_finalize slot (closes #24345)
Patch from Petr Viktorin.
-rw-r--r-- | Include/typeslots.h | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Objects/typeslots.inc | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/Include/typeslots.h b/Include/typeslots.h index f56749d..a89d73b 100644 --- a/Include/typeslots.h +++ b/Include/typeslots.h @@ -79,3 +79,4 @@ #define Py_am_await 77 #define Py_am_aiter 78 #define Py_am_anext 79 +#define Py_tp_finalize 80 @@ -10,6 +10,8 @@ Release date: 2015-07-05 Core and Builtins ----------------- +- Issue #24345: Add Py_tp_finalize slot for the stable ABI. + Library ------- diff --git a/Objects/typeslots.inc b/Objects/typeslots.inc index bcbe0af..dc750cc 100644 --- a/Objects/typeslots.inc +++ b/Objects/typeslots.inc @@ -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), |