list
and types.ListType
in the Python layer.
PyObject *p) |
PyObject *p) |
Py_ssize_t len) |
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().
PyObject *list) |
PyObject *list) |
PyObject *list, Py_ssize_t index) |
PyObject *list, Py_ssize_t i) |
PyObject *list, Py_ssize_t index, PyObject *item) |
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.
PyObject *list, Py_ssize_t i, PyObject *o) |
PyObject *list, Py_ssize_t index, PyObject *item) |
0
if successful; return -1
and
set an exception if unsuccessful. Analogous to
list.insert(index, item)
.
PyObject *list, PyObject *item) |
0
if successful; return -1
and set an
exception if unsuccessful. Analogous to
list.append(item)
.
PyObject *list, Py_ssize_t low, Py_ssize_t high) |
list[low:high]
.
PyObject *list, Py_ssize_t low, Py_ssize_t high, PyObject *itemlist) |
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.
PyObject *list) |
0
on
success, -1
on failure. This is equivalent to
"list.sort()".
PyObject *list) |
0
on
success, -1
on failure. This is the equivalent of
"list.reverse()".
PyObject *list) |
See About this document... for information on suggesting changes.