]> granicus.if.org Git - python/commitdiff
Issue #4129: more int -> Py_ssize_t documentation.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Sat, 25 Apr 2009 20:55:39 +0000 (20:55 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Sat, 25 Apr 2009 20:55:39 +0000 (20:55 +0000)
Doc/c-api/string.rst

index 359b4c57b97133186d3cc76278ebb2a9eb74f1f2..c7d27a31c79054aac33cdfb5ebb04a8140653f76 100644 (file)
@@ -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)