[Python-checkins] r71932 - python/trunk/Doc/c-api/string.rst

jeroen.ruigrok python-checkins at python.org
Sat Apr 25 22:55:39 CEST 2009


Author: jeroen.ruigrok
Date: Sat Apr 25 22:55:39 2009
New Revision: 71932

Log:
Issue #4129: more int -> Py_ssize_t documentation.


Modified:
   python/trunk/Doc/c-api/string.rst

Modified: python/trunk/Doc/c-api/string.rst
==============================================================================
--- python/trunk/Doc/c-api/string.rst	(original)
+++ python/trunk/Doc/c-api/string.rst	Sat Apr 25 22:55:39 2009
@@ -147,6 +147,10 @@
 
    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 @@
    *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 @@
 
       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 @@
 
       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)
 


More information about the Python-checkins mailing list