summaryrefslogtreecommitdiffstats
path: root/Include/listobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-24 18:22:02 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-24 18:22:02 (GMT)
commita937d14898e8e396a1c9acc0fbd2db5209d1a6ce (patch)
tree797b23e8e3562d0c5a712b863678af4065645685 /Include/listobject.h
parent7b7a2c2e110a2a9d5bb7c4f0c0dbda74e215059f (diff)
downloadcpython-a937d14898e8e396a1c9acc0fbd2db5209d1a6ce.zip
cpython-a937d14898e8e396a1c9acc0fbd2db5209d1a6ce.tar.gz
cpython-a937d14898e8e396a1c9acc0fbd2db5209d1a6ce.tar.bz2
Fred's right -- we need PyList_SET_ITEM().
Diffstat (limited to 'Include/listobject.h')
-rw-r--r--Include/listobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/listobject.h b/Include/listobject.h
index c1bbcc1..e99acef 100644
--- a/Include/listobject.h
+++ b/Include/listobject.h
@@ -74,6 +74,7 @@ extern PyObject *PyList_AsTuple Py_PROTO((PyObject *));
/* Macro, trading safety for speed */
#define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])
+#define PyList_SET_ITEM(op, i, v) (((PyListObject *)(op))->ob_item[i] = (v))
#define PyList_GET_SIZE(op) (((PyListObject *)(op))->ob_size)
#ifdef __cplusplus