PyList_Append requires explicit Py_INCREF after?

Fredrik Lundh fredrik at pythonware.com
Wed Jul 5 03:24:08 EDT 2006


seberino at spawar.navy.mil wrote:

> PyList_Append requires explicit Py_INCREF after?
> 
> (I didn't see in docs where it said if appends a new reference
> or a borrowed reference like other APIs.)

if successful, PyList_Append(seq, item) increments the reference count 
for item.

</F>




More information about the Python-list mailing list