diff options
Diffstat (limited to 'Doc/c-api/mapping.rst')
-rw-r--r-- | Doc/c-api/mapping.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/c-api/mapping.rst b/Doc/c-api/mapping.rst index 177b215..c2c22e5 100644 --- a/Doc/c-api/mapping.rst +++ b/Doc/c-api/mapping.rst @@ -12,7 +12,8 @@ Mapping Protocol function always succeeds. -.. cfunction:: Py_ssize_t PyMapping_Length(PyObject *o) +.. cfunction:: Py_ssize_t PyMapping_Size(PyObject *o) + Py_ssize_t PyMapping_Length(PyObject *o) .. index:: builtin: len @@ -20,6 +21,10 @@ Mapping Protocol objects that do not provide mapping protocol, this is equivalent to the Python expression ``len(o)``. + .. versionchanged:: 2.5 + These functions returned an :ctype:`int` type. This might require + changes in your code for properly supporting 64-bit systems. + .. cfunction:: int PyMapping_DelItemString(PyObject *o, char *key) |