[Python-Dev] Mixing memory management APIs

Neil Schemenauer nas@python.ca
Wed, 30 Jan 2002 09:40:50 -0800


Michael Hudson wrote:
> I agree we have too many preprocessor macros, but I don't think we can
> have free == PyObject_DEL.

If we don't then many extension modules will break.  The example module
Modules/xxmodule.c used to allocate using PyObject_New and deallocate
using free().  I believe there are many modules out there that do the
same (or use PyMem_Del, etc).

  Neil