[Python-Dev] Memory management question

Guido van Rossum guido@digicool.com
Fri, 27 Apr 2001 14:14:20 -0500


> I going to see if I can fix this for 2.2.  My current thinking is
> that there should be memory management APIs for GC objects,
> something like:
> 
>     PyObject_GC_New()
>     PyObject_GC_NewVar()
>     PyObject_GC_Realloc()
>     PyObject_GC_Del()
> 
> The non-GC APIs would no longer have to check the type flags
> which would be a bit of a speed win.  The _AS_GC, _FROM_GC macros
> would not have to be used as much and the GC implementation would
> have more freedom about how to allocate things.

Looks good!

--Guido van Rossum (home page: http://www.python.org/~guido/)