diff options
author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 20:55:39 (GMT) |
---|---|---|
committer | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 20:55:39 (GMT) |
commit | 7b3750c8d896a1f8478868d3e442748143b0b317 (patch) | |
tree | 2e56370938631cc029815c7d4bbcb6278d1257df | |
parent | 36378711b71ad478dcc66d768f8373db899e54c1 (diff) | |
download | cpython-7b3750c8d896a1f8478868d3e442748143b0b317.zip cpython-7b3750c8d896a1f8478868d3e442748143b0b317.tar.gz cpython-7b3750c8d896a1f8478868d3e442748143b0b317.tar.bz2 |
Issue #4129: more int -> Py_ssize_t documentation.
-rw-r--r-- | Doc/c-api/string.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/c-api/string.rst b/Doc/c-api/string.rst index 359b4c5..c7d27a3 100644 --- a/Doc/c-api/string.rst +++ b/Doc/c-api/string.rst @@ -147,6 +147,10 @@ called with a non-string parameter. Macro form of :cfunc:`PyString_Size` but without error checking. + .. versionchanged:: 2.5 + This macro returned an :ctype:`int` type. This might require changes in + your code for properly supporting 64-bit systems. + .. cfunction:: char* PyString_AsString(PyObject *string) @@ -182,6 +186,10 @@ called with a non-string parameter. *string* and operates on that. If *string* is not a string object at all, :cfunc:`PyString_AsStringAndSize` returns ``-1`` and raises :exc:`TypeError`. + .. versionchanged:: 2.5 + This function used an :ctype:`int *` type for *length*. This might + require changes in your code for properly supporting 64-bit systems. + .. cfunction:: void PyString_Concat(PyObject **string, PyObject *newpart) @@ -261,6 +269,10 @@ called with a non-string parameter. This function is not available in 3.x and does not have a PyBytes alias. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *size*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: PyObject* PyString_AsDecodedObject(PyObject *str, const char *encoding, const char *errors) @@ -287,6 +299,10 @@ called with a non-string parameter. This function is not available in 3.x and does not have a PyBytes alias. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *size*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: PyObject* PyString_AsEncodedObject(PyObject *str, const char *encoding, const char *errors) |