From: Guido van Rossum Date: Fri, 5 Apr 2002 22:32:23 +0000 (+0000) Subject: Backport half a patch from the trunk. This inherits tp_is_gc from a X-Git-Tag: v2.2.1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e45ccb4703629c8d6e1c10e54d998756c35eafd;p=thirdparty%2FPython%2Fcpython.git Backport half a patch from the trunk. This inherits tp_is_gc from a base class. --- diff --git a/Misc/NEWS b/Misc/NEWS index aea9348fcd0a..8f34aa599ad6 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 bc7a189c1d00..5ec5784c94e3 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); } }