Index: c-api/string.rst =================================================================== --- c-api/string.rst (revision 71891) +++ c-api/string.rst (working copy) @@ -60,7 +60,11 @@ *len* on success, and *NULL* on failure. If *v* is *NULL*, the contents of the string are uninitialized. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *len*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: PyObject* PyString_FromFormat(const char *format, ...) Take a C :cfunc:`printf`\ -style *format* string and a variable number of @@ -134,7 +138,11 @@ Return the length of the string in string object *string*. + .. versionchanged:: 2.5 + This function returned an :ctype:`int` type. This might require changes + in your code for properly supporting 64-bit systems. + .. cfunction:: Py_ssize_t PyString_GET_SIZE(PyObject *string) Macro form of :cfunc:`PyString_Size` but without error checking. @@ -202,6 +210,9 @@ fails, the original string object at *\*string* is deallocated, *\*string* is set to *NULL*, a memory exception is set, and ``-1`` is returned. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *newsize*. This might + require changes in your code for properly supporting 64-bit systems. .. cfunction:: PyObject* PyString_Format(PyObject *format, PyObject *args) Index: c-api/arg.rst =================================================================== --- c-api/arg.rst (revision 71893) +++ c-api/arg.rst (working copy) @@ -276,14 +276,12 @@ units in *items*. The C arguments must correspond to the individual format units in *items*. Format units for sequences may be nested. - .. note:: + .. versionchanged:: 2.5 + This format specifier only accepted a tuple containing the individual + parameters, not an arbitrary sequence. Code which previously caused + :exc:`TypeError` to be raised here may now proceed without an exception. + This is not expected to be a problem for existing code. - Prior to Python version 1.5.2, this format specifier only accepted a - tuple containing the individual parameters, not an arbitrary sequence. - Code which previously caused :exc:`TypeError` to be raised here may now - proceed without an exception. This is not expected to be a problem for - existing code. - It is possible to pass Python long integers where integers are requested; however no proper range checking is done --- the most significant bits are silently truncated when the receiving field is too small to receive the value @@ -403,7 +401,11 @@ .. versionadded:: 2.2 + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *min* and *max*. This might + require changes in your code for properly supporting 64-bit systems. + .. cfunction:: PyObject* Py_BuildValue(const char *format, ...) Create a new value based on a format string similar to those accepted by Index: c-api/dict.rst =================================================================== --- c-api/dict.rst (revision 71900) +++ c-api/dict.rst (working copy) @@ -143,7 +143,11 @@ Return the number of items in the dictionary. This is equivalent to ``len(p)`` on a dictionary. + .. versionchanged:: 2.5 + This function returned an :ctype:`int` type. This might require changes + in your code for properly supporting 64-bit systems. + .. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) Iterate over all key-value pairs in the dictionary *p*. The @@ -187,7 +191,11 @@ Py_DECREF(o); } + .. versionchanged:: 2.5 + This function used an :ctype:`int *` type for *ppos*. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: int PyDict_Merge(PyObject *a, PyObject *b, int override) Iterate over mapping object *b* adding key-value pairs to dictionary *a*. Index: c-api/allocation.rst =================================================================== --- c-api/allocation.rst (revision 71891) +++ c-api/allocation.rst (working copy) @@ -11,7 +11,12 @@ .. cfunction:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size) + .. versionchanged:: 2.5 + Prior to Python version 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:: void _PyObject_Del(PyObject *op)