On 2008-08-12 05:37:53 +0100, "Gabriel Genellina" <[EMAIL PROTECTED]> said:

En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent <[EMAIL PROTECTED]> escribi�:

<snip>

Uh? You have a complete API for working with list objects, the functions named PyList_*
See http://docs.python.org/api/listObjects.html
There is also an abstract layer that works both with lists and tuples: http://docs.python.org/api/sequence.html
If that's not what you are after, please provide more details...

Thank you for the advice.

Bah, just noticed that the very last function on that page you linked is what I am looking for. I could use PyList_AsTuple and then use PyArg_ParseTuple to convert it to C types. Why do I always miss the obvious? You have no idea how long I've spent looking through that API reference :).
--
"I disapprove of what you say, but I'll defend to the death your right to say it." - Voltaire

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to