diff --git a/Include/typeslots.h b/Include/typeslots.h index 9be8ecdf449..ad3cdfb19ad 100644 --- a/Include/typeslots.h +++ b/Include/typeslots.h @@ -71,3 +71,6 @@ #define Py_tp_setattro 69 #define Py_tp_str 70 #define Py_tp_traverse 71 +#define Py_tp_members 72 +#define Py_tp_getset 73 +#define Py_tp_free 74 diff --git a/Misc/NEWS b/Misc/NEWS index 8e4ae142468..f57ba38e8a5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,8 @@ What's New in Python 3.2? Core and Builtins ----------------- +- Issue #11134: Add missing fields to typeslots.h. + - Issue #11135: Remove redundant doc field from PyType_Spec. - Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check diff --git a/Objects/typeslots.inc b/Objects/typeslots.inc index d4872f6aadd..0494a32aa95 100644 --- a/Objects/typeslots.inc +++ b/Objects/typeslots.inc @@ -70,3 +70,6 @@ offsetof(PyHeapTypeObject, ht_type.tp_setattr), offsetof(PyHeapTypeObject, ht_type.tp_setattro), offsetof(PyHeapTypeObject, ht_type.tp_str), offsetof(PyHeapTypeObject, ht_type.tp_traverse), +offsetof(PyHeapTypeObject, ht_type.tp_members), +offsetof(PyHeapTypeObject, ht_type.tp_getset), +offsetof(PyHeapTypeObject, ht_type.tp_free),