Problems returning data from embedded Python
Cromulent
cromulent at justextrememetal.com
Tue Aug 12 05:58:19 EDT 2008
On 2008-08-12 05:37:53 +0100, "Gabriel Genellina"
<gagsl-py2 at yahoo.com.ar> said:
> En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent
> <cromulent at justextrememetal.com> 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
More information about the Python-list
mailing list