From 7e45ccb4703629c8d6e1c10e54d998756c35eafd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 5 Apr 2002 22:32:23 +0000 Subject: Backport half a patch from the trunk. This inherits tp_is_gc from a base class. --- Misc/NEWS | 4 ++++ Objects/typeobject.c | 1 + 2 files changed, 5 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index aea9348..8f34aa5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,6 +16,10 @@ Library circular references by using itself as the locator that gets passed to the content handler implementation. [SF bug #535474] +C API + +- PyType_Ready() accidentally did not inherit tp_is_gc; now it does. + Windows - The installer now installs Start menu shortcuts under (the local diff --git a/Objects/typeobject.c b/Objects/typeobject.c index bc7a189..5ec5784 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1980,6 +1980,7 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base) COPYSLOT(tp_init); COPYSLOT(tp_alloc); COPYSLOT(tp_free); + COPYSLOT(tp_is_gc); } } -- cgit v0.12