[Python-Dev] survey of extension module memory managment

Skip Montanaro skip@pobox.com
Tue, 19 Mar 2002 08:11:57 -0600


    Fredrik> $ more Python-1.5.2/Objects/xxobject.c

    Fredrik> ... PyObject_NEW/PyMem_DEL ...

    Fredrik> it looked like this between 1994 and May 2000.

    Fredrik> and as noted elsewhere, PyObject_DEL, PyObject_New, and
    Fredrik> PyObject_Del don't exist in older versions.

It would seem that whatever is done, something like what /F does in _sre.c
or what MAL does in mx should be made available as a suggested workaround
for people who want to modify existing extension modules that need to run
with older versions of Python.  If it's done once by this group I think it
will have a better chance of being adopted and keeps everyone from having to
reinvent the wheel.

Skip