From: "David Abrahams" <david.abrahams@rcn.com> > 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 gc.collect() (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). Thomas
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4