From cc8fe0407a66acc267b60386e9346f3539e0ffae Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 5 Apr 2002 17:10:16 +0000 Subject: [PATCH] Inherit tp_new and tp_is_gc. Bugfix candidate. --- Objects/typeobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index f0e8c833312..849840c8cf0 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2024,6 +2024,8 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base) COPYSLOT(tp_init); COPYSLOT(tp_alloc); COPYSLOT(tp_free); + COPYSLOT(tp_new); + COPYSLOT(tp_is_gc); } }