summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-05-31 11:37:58 (GMT)
committerThomas Heller <theller@ctypes.org>2006-05-31 11:37:58 (GMT)
commitbd16bce81fa070df7d206ad4f7e8074a427e32ff (patch)
tree0afb352f1e875c29bf360d922ccef017032e3ff9 /Modules
parent9f16dd026c8284fbd4796289d611f59bd9b53797 (diff)
downloadcpython-bd16bce81fa070df7d206ad4f7e8074a427e32ff.zip
cpython-bd16bce81fa070df7d206ad4f7e8074a427e32ff.tar.gz
cpython-bd16bce81fa070df7d206ad4f7e8074a427e32ff.tar.bz2
PyTuple_Pack is not available in Python 2.3, but ctypes must stay
compatible with that.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 6bb0880..6a27833 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -2185,7 +2185,7 @@ _CData_set(CDataObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value,
only it's object list. So we create a tuple, containing
b_objects list PLUS the array itself, and return that!
*/
- return PyTuple_Pack(2, keep, value);
+ return Py_BuildValue("(OO)", keep, value);
}
PyErr_Format(PyExc_TypeError,
"incompatible types, %s instance instead of %s instance",