[Python-Dev] A little GC confusion
Thu, 21 Feb 2002 15:14:03 +0100
From: "David Abrahams" <firstname.lastname@example.org>
> Hi All,
> The following extension module (AA) is a reduced example of what I'm doing
> to make extension
> classes in 2.2. I followed the examples given by typeobject.c. When I
> "import AA,pdb" I get a crash in GC.
For me it crashes after
import AA, gc
(Win2k Prof, SP1, MSVC6.0)
I'm not really sure, but it seems your code does not crash any longer
if you remove the Py_TPFLAGS_HAVE_GC from your definition of class_metatype_object.
This flag *will* be set by PyType_Ready(); I guess it is inherited
from the base type (PyType_Type in your case).