summaryrefslogtreecommitdiffstats
path: root/Include/tupleobject.h
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-06 22:44:27 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-06 22:44:27 (GMT)
commit9c5494a1b925d1040c82a1dc4478de510a1c88b5 (patch)
treebdcdd1e8e8e78c6cb796ed3669d87ffcc92946d7 /Include/tupleobject.h
parentaccfb849f9a92e094617de4ff42a7b61ff2f265e (diff)
downloadcpython-9c5494a1b925d1040c82a1dc4478de510a1c88b5.zip
cpython-9c5494a1b925d1040c82a1dc4478de510a1c88b5.tar.gz
cpython-9c5494a1b925d1040c82a1dc4478de510a1c88b5.tar.bz2
added PyTuple_GET_SIZE macro
Diffstat (limited to 'Include/tupleobject.h')
-rw-r--r--Include/tupleobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/tupleobject.h b/Include/tupleobject.h
index f5a7fa5..506f965 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)