[Zope-Coders] type(s) crashes Python 2.1.1 in PyObject_Print

Martijn Faassen faassen@vet.uu.nl
Sun, 23 Dec 2001 21:37:06 +0100


Andreas Jung wrote:
> Is this a problem of Python or is there something in the C extension missing
> ?

I recall seeing this (or something along those lines) happening for 4XML
(it crashed Zope's debug screen).. hmm..

In that case it was a missing assignment to ob_type, and adding something
like this added it:

PyDomletteDOMImplementation_Type.ob_type = &PyType_Type;

So it may be possible in your case ob_type wasn't set. It may be something
else as well, of course, though.

Regards,

Martijn