]> granicus.if.org Git - python/commitdiff
added PyTuple_GET_SIZE macro
authorBarry Warsaw <barry@python.org>
Mon, 6 Jan 1997 22:44:27 +0000 (22:44 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 6 Jan 1997 22:44:27 +0000 (22:44 +0000)
Include/tupleobject.h

index f5a7fa5676a419d8e74da17d1e9664d6cabc0438..506f96532fce58fa0897422db52f941a1923eb1a 100644 (file)
@@ -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)