summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 18:46:03 +0000
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 18:46:03 +0000
commit2391918f3e529770b4433c8fb58d3c0849f78072 (patch)
treeba58ea1228b06cc706894a9d4777b5cf86cccc9c
parent84441cc3d51ba339963015720cb8bec0f1fa2266 (diff)
downloadcpython-git-2391918f3e529770b4433c8fb58d3c0849f78072.tar.gz
Issue #4129: Document more int -> Py_ssize_t changes.
-rw-r--r--Doc/c-api/slice.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst
index 3743ff8a89..14c1d4948b 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -43,6 +43,11 @@ Slice Objects
incorporate the source of :cfunc:`PySlice_GetIndicesEx`, suitably renamed,
in the source of your extension.
+ .. versionchanged:: 2.5
+ This function used an :ctype:`int` type for *length* and an
+ :ctype:`int *` type for *start*, *stop*, and *step*. This might require
+ changes in your code for properly supporting 64-bit systems.
+
.. cfunction:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength)
@@ -55,3 +60,9 @@ Slice Objects
Returns 0 on success and -1 on error with exception set.
.. versionadded:: 2.3
+
+ .. versionchanged:: 2.5
+ This function used an :ctype:`int` type for *length* and an
+ :ctype:`int *` type for *start*, *stop*, *step*, and *slicelength*. This
+ might require changes in your code for properly supporting 64-bit
+ systems.