Inherit tp_new and tp_is_gc.
authorGuido van Rossum <guido@python.org>
Fri, 5 Apr 2002 17:10:16 +0000 (17:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Apr 2002 17:10:16 +0000 (17:10 +0000)
Bugfix candidate.

Objects/typeobject.c

index f0e8c8333120de30d68c4954190ab6db619349d5..849840c8cf0a040203dbdbad8aba9617bae7c913 100644 (file)
@@ -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);
        }
 }