PyList_New
Raymond Hettinger
vze4rx4y at verizon.net
Sat Aug 30 13:15:10 EDT 2003
[soso]
> Hi everybody,
Hello!
> Does PyList_New() increments the reference count?
Yes.
> I believe yes but I
> want to be sure because I saw some code from a module that has a
> function that increments it before returning the list.
Quoth the docs:
"""
PyObject* PyList_New( int len)
Return value: New reference.
Returns a new list of length len on success, or NULL on failure.
"""
> Thanks in advance,
You're welcome after the fact.
> soso
Raymond Hettinger
More information about the Python-list
mailing list