From: Jeroen Ruigrok van der Werven Date: Sat, 25 Apr 2009 20:37:39 +0000 (+0000) Subject: Since it's a macro, actually refer to it as such instead of function. X-Git-Tag: v2.7a1~1389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e03cee97cc7c9ff168b579ccea06f69e4777aa9;p=python Since it's a macro, actually refer to it as such instead of function. --- diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst index 715efa5d32..2ce5ade875 100644 --- a/Doc/c-api/list.rst +++ b/Doc/c-api/list.rst @@ -72,8 +72,8 @@ List Objects Macro form of :cfunc:`PyList_Size` without error checking. .. versionchanged:: 2.5 - This function returned an :ctype:`int`. This might require changes in - your code for properly supporting 64-bit systems. + This macro returned an :ctype:`int`. This might require changes in your + code for properly supporting 64-bit systems. .. cfunction:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index) @@ -93,8 +93,8 @@ List Objects Macro form of :cfunc:`PyList_GetItem` without error checking. .. versionchanged:: 2.5 - This function used an :ctype:`int` for *i*. This might require changes - in your code for properly supporting 64-bit systems. + This macro used an :ctype:`int` for *i*. This might require changes in + your code for properly supporting 64-bit systems. .. cfunction:: int PyList_SetItem(PyObject *list, Py_ssize_t index, PyObject *item) @@ -119,13 +119,13 @@ List Objects .. note:: - This function "steals" a reference to *item*, and, unlike + This macro "steals" a reference to *item*, and, unlike :cfunc:`PyList_SetItem`, does *not* discard a reference to any item that it being replaced; any reference in *list* at position *i* will be leaked. .. versionchanged:: 2.5 - This function used an :ctype:`int` for *i*. This might require + This macro used an :ctype:`int` for *i*. This might require changes in your code for properly supporting 64-bit systems.