[Python-checkins] python/dist/src/Objects typeobject.c,2.232,2.233

Jack Jansen Jack.Jansen@cwi.nl
Mon, 26 May 2003 11:16:27 +0200


On Wednesday, May 21, 2003, at 23:29 Europe/Amsterdam, 
tim_one@users.sourceforge.net wrote:
> inherit_slots():  Don't inherit tp_free unless the type and its base
> agree about whether they're gc'able.  If the type is gc'able and the
> base is not, and the base uses the default PyObject_Del for its
> tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
> default for a gc'able type).

Is it reasonable that in the normal course of events a type and 
basetype disagree on GC'ability? Because if it isn't shouldn't we print 
a warning or something (at least in debug builds)?
--
Jack Jansen, <Jack.Jansen@cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman