Mercurial > cpython-lru_cache-weakref
diff Doc/c-api/tuple.rst @ 53437:4e5ad566bfbb legacy-trunk
Issue #4129: more int -> Py_ssize_t documentation.
| author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> |
|---|---|
| date | Sat, 25 Apr 2009 20:58:35 +0000 |
| parents | 85cc9512b60c |
| children | e99013a9d2f9 |
line wrap: on
line diff
--- a/Doc/c-api/tuple.rst Sat Apr 25 20:55:39 2009 +0000 +++ b/Doc/c-api/tuple.rst Sat Apr 25 20:58:35 2009 +0000 @@ -74,6 +74,10 @@ 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) @@ -89,6 +93,10 @@ 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) @@ -123,6 +131,10 @@ 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)
