On Wed, Aug 27, 2003 at 03:33:10PM -0700, Ben Liblit wrote:
> What I cannot do is subclass this wrapper class in Python code. When I
> try to, I get the diagnostic message reported earlier:
>
> python: Objects/typeobject.c:872: extra_ivars:
> Assertion `t_size >= b_size' failed.
>
> Does anyone know what deeper problem this message is symptomatic of?
> What am I doing wrong in my extension module that would allow it to work
> correctly when the wrapper class is instantiated directly, but which
> would cause this error when a subclass of the wrapper class is defined?
Well, google doesn't know, and the Python source code tells me that:
static int
extra_ivars(PyTypeObject *type, PyTypeObject *base)
{
size_t t_size = type->tp_basicsize;
size_t b_size = base->tp_basicsize;
assert(t_size >= b_size); /* Else type smaller than base! */
/* ... */
-- but I'm not sure that gets you much further.
This really sounds like material for comp.lang.python, because I'm
almost positive it's not going to be directly related to PyGTK, and even
if it is, I have a hunch nobody here knows the answer <wink>
You might try python-help, alternatively.
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/