|
Re: extra_ivars assersion failure: msg#00194gnome.gtk+.python
On 28/08/2003 6:33 AM, Ben Liblit wrote: I'm having trouble subclassing a class from an extension module. When Python processes my subclass definition, and before any instances are created, it aborts with: It sounds like the size of your object (tp_basicsize) is smaller than the size of your base class. Python raises an assertion here because it would mean that methods of the base class may try to access unallocated memory when presented an instance of the subclass. Take a look at the examples in the Python descriptor intro document about how to subclass from something like list. That should give an idea of what to do in this case. James. -- Email: james@xxxxxxxxxx WWW: http://www.daa.com.au/~james/ _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Can't get key-press-events..: 00194, James Henstridge |
|---|---|
| Next by Date: | GnomeAppBar and Glade: 00194, Lawrence Oluyede |
| Previous by Thread: | Re: extra_ivars assersion failurei: 00194, Christian Reis |
| Next by Thread: | GnomeAppBar and Glade: 00194, Lawrence Oluyede |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |