tuple creation in C extensions

Louis M. Pecora pecora at anvil.nrl.navy.mil
Thu Jun 15 07:15:38 EDT 2000


In article <200006141705.NAA14660 at w20-575-109.mit.edu>, Alexander S
Coventry <alex_c at MIT.EDU> wrote:

> > The docs already have that:
> > 
> >    PyObject* PyList_GetItem (PyObject *list, int index)
> > 
> >    Return value: Borrowed reference.

Oy, Vey!  Borrowed reference (if you know that) means you "manually"
increase the refcount, right?  New ref. means you decrease the
refcount, unless that item is returned to the Python calling routine?

I'm sure there's more than this. :-)



More information about the Python-list mailing list