From a937d14898e8e396a1c9acc0fbd2db5209d1a6ce Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 24 Apr 1998 18:22:02 +0000 Subject: Fred's right -- we need PyList_SET_ITEM(). --- Include/listobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/listobject.h') diff --git a/Include/listobject.h b/Include/listobject.h index c1bbcc17f5..e99acef1b9 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 -- cgit v1.2.1