[Python-Dev] Borrowed and Stolen References in API
greg.ewing at canterbury.ac.nz
Tue May 10 03:28:04 CEST 2011
Marvin Humphrey wrote:
> incremented: The caller has to account for an additional refcount.
> decremented: The caller has to account for a lost refcount.
I'm not sure that really clarifies anything. These terms
sound like they're talking about the reference count of the
object, but if they correspond to borrowed/stolen, they
don't necessarily correlate with what actually happens to
the reference count.
More information about the Python-Dev