diff options
Diffstat (limited to 'Doc/c-api/list.rst')
-rw-r--r-- | Doc/c-api/list.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst index 7909be8..e2990e7 100644 --- a/Doc/c-api/list.rst +++ b/Doc/c-api/list.rst @@ -44,6 +44,10 @@ List Objects :cfunc:`PySequence_SetItem` or expose the object to Python code before setting all items to a real object with :cfunc:`PyList_SetItem`. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *size*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: Py_ssize_t PyList_Size(PyObject *list) @@ -52,6 +56,10 @@ List Objects Return the length of the list object in *list*; this is equivalent to ``len(list)`` on a list object. + .. versionchanged:: 2.5 + This function returned an :ctype:`int`. This might require changes in + your code for properly supporting 64-bit systems. + .. cfunction:: Py_ssize_t PyList_GET_SIZE(PyObject *list) @@ -64,6 +72,10 @@ List Objects must be positive, indexing from the end of the list is not supported. If *pos* is out of bounds, return *NULL* and set an :exc:`IndexError` exception. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *index*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: PyObject* PyList_GET_ITEM(PyObject *list, Py_ssize_t i) @@ -80,6 +92,10 @@ List Objects This function "steals" a reference to *item* and discards a reference to an item already in the list at the affected position. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *index*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: void PyList_SET_ITEM(PyObject *list, Py_ssize_t i, PyObject *o) @@ -99,6 +115,10 @@ List Objects if successful; return ``-1`` and set an exception if unsuccessful. Analogous to ``list.insert(index, item)``. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *index*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: int PyList_Append(PyObject *list, PyObject *item) @@ -113,6 +133,10 @@ List Objects and *high*. Return *NULL* and set an exception if unsuccessful. Analogous to ``list[low:high]``. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *low* and *high*. This might + require changes in your code for properly supporting 64-bit systems. + .. cfunction:: int PyList_SetSlice(PyObject *list, Py_ssize_t low, Py_ssize_t high, PyObject *itemlist) @@ -121,6 +145,10 @@ List Objects indicating the assignment of an empty list (slice deletion). Return ``0`` on success, ``-1`` on failure. + .. versionchanged:: 2.5 + This function used an :ctype:`int` for *low* and *high*. This might + require changes in your code for properly supporting 64-bit systems. + .. cfunction:: int PyList_Sort(PyObject *list) |