C Extension - return an array of longs or pointer?
"Martin v. Löwis"
martin at v.loewis.de
Wed Oct 12 15:51:46 EDT 2005
Brandon K wrote:
> PyTuple_SET_ITEM(py, i, Py_BuildValue("l",*result[i]);
Using Py_BuildValue is overkill here. PyInt_FromLong will do just
as well.
Regards,
Martin
More information about the Python-list
mailing list