Index: c-api/string.rst =================================================================== --- c-api/string.rst (revision 71891) +++ c-api/string.rst (working copy) @@ -60,7 +60,13 @@ *len* on success, and *NULL* on failure. If *v* is *NULL*, the contents of the string are uninitialized. + .. note:: + Prior to Python version 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 +140,13 @@ Return the length of the string in string object *string*. + .. note:: + Prior to Python version 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,7 +214,12 @@ fails, the original string object at *\*string* is deallocated, *\*string* is set to *NULL*, a memory exception is set, and ``-1`` is returned. + .. note:: + Prior to Python version 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) Return a new string object from *format* and *args*. Analogous to ``format % Index: c-api/arg.rst =================================================================== --- c-api/arg.rst (revision 71893) +++ c-api/arg.rst (working copy) @@ -401,6 +401,12 @@ PyArg_ParseTuple(args, "O|O:ref", &object, &callback) + .. note:: + + Prior to Python version 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. + .. versionadded:: 2.2 Index: c-api/dict.rst =================================================================== --- c-api/dict.rst (revision 71900) +++ c-api/dict.rst (working copy) @@ -143,7 +143,13 @@ Return the number of items in the dictionary. This is equivalent to ``len(p)`` on a dictionary. + .. note:: + Prior to Python version 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 +193,13 @@ Py_DECREF(o); } + .. note:: + Prior to Python version 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,13 @@ .. cfunction:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size) + .. note:: + 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)