diff Include/tupleobject.h @ 4898:4f87fd2d0562 legacy-trunk

added PyTuple_GET_SIZE macro
author Barry Warsaw <barry@python.org>
date Mon, 06 Jan 1997 22:44:27 +0000
parents 65d2d8e67da3
children 60fdb1db1175
line wrap: on
line diff
--- a/Include/tupleobject.h	Mon Jan 06 22:42:50 1997 +0000
+++ b/Include/tupleobject.h	Mon Jan 06 22:44:27 1997 +0000
@@ -69,6 +69,7 @@
 
 /* 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)