[Python-Dev] Mixing memory management APIs

Neil Schemenauer nas@python.ca
2002年1月30日 08:28:07 -0800


Michael Hudson wrote:
> Modified Files:
> 	_curses_panel.c 
> Log Message:
> Oh look, another one.
>> 2.2.1 candiate (he says, largely talking to himself :)

> *** 192,196 ****
> Py_DECREF(po->wo);
> remove_lop(po);
> ! PyMem_DEL(po);
> }
>> --- 192,196 ----
> Py_DECREF(po->wo);
> remove_lop(po);
> ! PyObject_DEL(po);
> }

I think we have to break down and do what Tim suggests. Ie make:
 free == PyMem_DEL == PyObject_DEL == PyObject_FREE == ...
pymalloc needs to use a completely new set of APIs. The only problem I
see is coming up with names. NEW, MALLOC, REALLOC, RESIZE, and DEL are
all taken. Any suggestions?
 Neil

AltStyle によって変換されたページ (->オリジナル) /