list
and types.ListType
in the Python layer.
NULL
. Thus you cannot use abstract
API functions such as PySequence_SetItem()
or expose the object to Python code before setting all items to a
real object with PyList_SetItem().
0
on success or -1
on failure. Note:
This function
``steals'' a reference to item and discards a reference to an
item already in the list at the affected position.
0
if successful; return -1
and
set an exception if unsuccessful. Analogous to
list.insert(index, item)
.
0
if successful; return -1
and set an
exception if unsuccessful. Analogous to
list.append(item)
.
list[low:high]
.
list[low:high] = itemlist
.
The itemlist may be NULL, indicating the assignment
of an empty list (slice deletion).
Return 0
on success, -1
on failure.
0
on
success, -1
on failure. This is equivalent to
"list.sort()".
0
on
success, -1
on failure. This is the equivalent of
"list.reverse()".