From: Martin v. Löwis Date: Fri, 11 Feb 2011 20:50:24 +0000 (+0000) Subject: Issue #11134: Add missing fields to typeslots.h. X-Git-Tag: v3.2rc3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc7e23ac15a895770c93fde6145da61570f34e68;p=python Issue #11134: Add missing fields to typeslots.h. Reviewed by Georg Brandl. --- diff --git a/Include/typeslots.h b/Include/typeslots.h index 9be8ecdf44..ad3cdfb19a 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 8e4ae14246..f57ba38e8a 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 d4872f6aad..0494a32aa9 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),