summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/tuple.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/tuple.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/tuple.rst')
-rw-r--r--Doc/c-api/tuple.rst40
1 files changed, 0 insertions, 40 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index 5cfab9c..a66f043 100644
--- a/Doc/c-api/tuple.rst
+++ b/Doc/c-api/tuple.rst
@@ -37,10 +37,6 @@ Tuple Objects
Return a new tuple object of size *len*, or *NULL* on failure.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *len*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: PyObject* PyTuple_Pack(Py_ssize_t n, ...)
@@ -48,58 +44,34 @@ Tuple Objects
are initialized to the subsequent *n* C arguments pointing to Python objects.
``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue("(OO)", a, b)``.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *n*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: Py_ssize_t PyTuple_Size(PyObject *p)
Take a pointer to a tuple object, and return the size of that tuple.
- .. versionchanged:: 2.5
- This function returned an :ctype:`int` type. This might require changes
- in your code for properly supporting 64-bit systems.
-
.. cfunction:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p)
Return the size of the tuple *p*, which must be non-*NULL* and point to a tuple;
no error checking is performed.
- .. versionchanged:: 2.5
- This function returned an :ctype:`int` type. This might require changes
- in your code for properly supporting 64-bit systems.
-
.. cfunction:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos)
Return the object at position *pos* in the tuple pointed to by *p*. If *pos* is
out of bounds, return *NULL* and sets an :exc:`IndexError` exception.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *pos*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: PyObject* PyTuple_GET_ITEM(PyObject *p, Py_ssize_t pos)
Like :cfunc:`PyTuple_GetItem`, but does no checking of its arguments.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *pos*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: PyObject* PyTuple_GetSlice(PyObject *p, Py_ssize_t low, Py_ssize_t high)
Take a slice of the tuple pointed to by *p* from *low* to *high* and return it
as a new tuple.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *low* and *high*. This might
- require changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: int PyTuple_SetItem(PyObject *p, Py_ssize_t pos, PyObject *o)
@@ -110,10 +82,6 @@ Tuple Objects
This function "steals" a reference to *o*.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *pos*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: void PyTuple_SET_ITEM(PyObject *p, Py_ssize_t pos, PyObject *o)
@@ -124,10 +92,6 @@ Tuple Objects
This function "steals" a reference to *o*.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *pos*. This might require
- changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: int _PyTuple_Resize(PyObject **p, Py_ssize_t newsize)
@@ -142,10 +106,6 @@ Tuple Objects
``*p`` is destroyed. On failure, returns ``-1`` and sets ``*p`` to *NULL*, and
raises :exc:`MemoryError` or :exc:`SystemError`.
- .. versionchanged:: 2.5
- This function used an :ctype:`int` type for *newsize*. This might
- require changes in your code for properly supporting 64-bit systems.
-
.. cfunction:: int PyTuple_ClearFreeList(void)