summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/list.rst
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-27 08:07:12 (GMT)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-27 08:07:12 (GMT)
commitb70ccc348bc4ea166f7538dd21b598dd5f545abe (patch)
tree3de8e56332170d2e2ca528d6a299ea24d2cfb64b /Doc/c-api/list.rst
parent7b6ca4ab7f8ff5dd81fd64ce92b91f6627929ea4 (diff)
downloadcpython-b70ccc348bc4ea166f7538dd21b598dd5f545abe.zip
cpython-b70ccc348bc4ea166f7538dd21b598dd5f545abe.tar.gz
cpython-b70ccc348bc4ea166f7538dd21b598dd5f545abe.tar.bz2
After discussing some more with Georg, do no migrate versionchanged:: 2.5 to
this branch. While I am here, also get rid of other versionchanged:: 2.x constructs, as discussed.
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 e971d36..7b8cd5c 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)