summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 20:37:39 (GMT)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 20:37:39 (GMT)
commit9e03cee97cc7c9ff168b579ccea06f69e4777aa9 (patch)
tree5729b2672d7f084c59978603168023796b0762c0 /Doc
parentaf15b4154764584e3cdc8c6338ec0f6a12e7fc29 (diff)
downloadcpython-9e03cee97cc7c9ff168b579ccea06f69e4777aa9.zip
cpython-9e03cee97cc7c9ff168b579ccea06f69e4777aa9.tar.gz
cpython-9e03cee97cc7c9ff168b579ccea06f69e4777aa9.tar.bz2
Since it's a macro, actually refer to it as such instead of function.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/list.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst
index 715efa5..2ce5ade 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.