[Python-Dev] Activating pymalloc

Tim Peters tim.one@comcast.net
Fri, 15 Mar 2002 16:04:27 -0500


[Martin v. Loewis]
> I may be missing something, but won't PyObject_Malloc (or
> PyObject_MALLOC if you prefer macros) have precisely this effect?

Yes.  It's not "sane", though, because PyObject_xxx is not "supposed to be
used" for raw memory.  Nevertheless, it would work.  In the same way, I can
mix PyMem_New with PyMem_FREE today freely in the core, but you'll object
that they're from different "families" <wink>.