[Patches] Re: Final request for GC patch

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Wed, 10 May 2000 15:38:12 +0200 (CEST)


Neil Schemenauer wrote:
> 
> [me, on why Object_DEL is changed to Object_Del for lists, tuples, dicts]
> > 
> > What is the rationale behind this change?
> 
> Look at _PyObject_New.  In order to link GC objects together
> extra memory must be allocated for objects that set
> Py_TPFLAGS_HAVE_GCINFO.  Although this check does not have to be
> done a run time I didn't want to clutter my patch with lots of
> ifdefs.

You'd have to reflect these changes in PyObject_NEW/DEL anyway,
so ifdef'ing objimpl.h cannot be avoided when you touch at the object
allocator. It's the developer's responsability to not use them for
extensions, but the macros should be updated (ifdef'ed)

Therefore, for all core objects, I think it is safe to leave the macros
(PyObject_NEW/DEL) as is.

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252