diff options
Diffstat (limited to 'Doc/c-api/tuple.rst')
-rw-r--r-- | Doc/c-api/tuple.rst | 40 |
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) |