From 9c5494a1b925d1040c82a1dc4478de510a1c88b5 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 6 Jan 1997 22:44:27 +0000 Subject: [PATCH] added PyTuple_GET_SIZE macro --- Include/tupleobject.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Include/tupleobject.h b/Include/tupleobject.h index f5a7fa5676a..506f96532fc 100644 --- a/Include/tupleobject.h +++ b/Include/tupleobject.h @@ -69,6 +69,7 @@ extern int _PyTuple_Resize Py_PROTO((PyObject **, int, int)); /* Macro, trading safety for speed */ #define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i]) +#define PyTuple_GET_SIZE(op) (((PyTupleObject *)(op))->ob_size) /* Macro, *only* to be used to fill in brand new tuples */ #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)