mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fred's right -- we need PyList_SET_ITEM().
This commit is contained in:
parent
7b7a2c2e11
commit
a937d14898
4 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue