From cc7e23ac15a895770c93fde6145da61570f34e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 11 Feb 2011 20:50:24 +0000 Subject: Issue #11134: Add missing fields to typeslots.h. Reviewed by Georg Brandl. --- Include/typeslots.h | 3 +++ Misc/NEWS | 2 ++ Objects/typeslots.inc | 3 +++ 3 files changed, 8 insertions(+) diff --git a/Include/typeslots.h b/Include/typeslots.h index 9be8ecd..ad3cdfb 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 8e4ae14..f57ba38 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 d4872f6..0494a32 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), -- cgit v0.12