summaryrefslogtreecommitdiff
path: root/Doc/c-api/list.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/list.rst')
-rw-r--r--Doc/c-api/list.rst40
1 files changed, 0 insertions, 40 deletions
diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst
index e971d363a6..7b8cd5cbc5 100644
--- a/Doc/c-api/list.rst
+++ b/Doc/c-api/list.rst
@@ -45,10 +45,6 @@ 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)
@@ -57,19 +53,11 @@ 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)
Macro form of :cfunc:`PyList_Size` without error checking.
- .. versionchanged:: 2.5
- This macro returned an :ctype:`int`. This might require changes in your
- code for properly supporting 64-bit systems.
-
.. cfunction:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
@@ -78,19 +66,11 @@ List Objects
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)
Macro form of :cfunc:`PyList_GetItem` without error checking.
- .. versionchanged:: 2.5
- This macro used an :ctype:`int` for *i*. This might require changes in
- your code for properly supporting 64-bit systems.
-
.. cfunction:: int PyList_SetItem(PyObject *list, Py_ssize_t index, PyObject *item)
@@ -102,10 +82,6 @@ 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)
@@ -119,10 +95,6 @@ List Objects
is being replaced; any reference in *list* at position *i* will be
leaked.
- .. versionchanged:: 2.5
- This macro used an :ctype:`int` for *i*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: int PyList_Insert(PyObject *list, Py_ssize_t index, PyObject *item)
@@ -130,10 +102,6 @@ List Objects
``0`` 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)
@@ -148,10 +116,6 @@ List Objects
*low* 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)
@@ -160,10 +124,6 @@ List Objects
be *NULL*, 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)