tuple creation in C extensions

Alexander S Coventry alex_c at MIT.EDU
Wed Jun 14 13:05:51 EDT 2000


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

Oh, right.  I saw that before, but I didn't realize that 'Borrowed
reference' means the reference count to the object returned isn't
incremented.

Alex.




More information about the Python-list mailing list