[Python-Dev] ast-objects branch created

"Martin v. Löwis" martin at v.loewis.de
Tue Dec 6 23:06:00 CET 2005


Nick Coghlan wrote:
> As Fredrik pointed out a while back, the PyObject approach doesn't *have* to 
> involve manual decref operations - PyObject's come with a ready made arena 
> structure, in the form of PyList.

That doesn't really work: PyList_Append (which you would have to use) 
duplicates the reference, so you would still have to decref it
explicitly.

Of course, you could do so right away, instead of doing it on exit.

Regards,
Martin


More information about the Python-Dev mailing list