summaryrefslogtreecommitdiffstats
path: root/Include/tupleobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-10-12 18:24:34 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-10-12 18:24:34 (GMT)
commitcb2da43db8943e9e7b1d900bce1d6416339d6f64 (patch)
tree91873c9ad0b19e9ab7e40f7d0a79db1bbc823df5 /Include/tupleobject.h
parentd662548c728e5e1da15d5594a8b6e751213002f8 (diff)
downloadcpython-cb2da43db8943e9e7b1d900bce1d6416339d6f64.zip
cpython-cb2da43db8943e9e7b1d900bce1d6416339d6f64.tar.gz
cpython-cb2da43db8943e9e7b1d900bce1d6416339d6f64.tar.bz2
Extended tuple's C API to include a new function, PyTuple_Pack() that is
useful for rapidly building argument tuples without having to invoke the more sophisticated machinery of Py_BuildValue().
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 58bf896..f1839fe 100644
--- a/Include/tupleobject.h
+++ b/Include/tupleobject.h
@@ -35,6 +35,7 @@ PyAPI_FUNC(PyObject *) PyTuple_GetItem(PyObject *, int);
PyAPI_FUNC(int) PyTuple_SetItem(PyObject *, int, PyObject *);
PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, int, int);
PyAPI_FUNC(int) _PyTuple_Resize(PyObject **, int);
+PyAPI_FUNC(PyObject *) PyTuple_Pack(int, ...);
/* Macro, trading safety for speed */
#define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i])