Problems returning data from embedded Python

Cromulent cromulent at
Tue Aug 12 11:58:19 CEST 2008

On 2008-08-12 05:37:53 +0100, "Gabriel Genellina" 
<gagsl-py2 at> said:

> En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent  
> <cromulent at> escribi�:
>> <snip>
> Uh? You have a complete API for working with list objects, the 
> functions  named PyList_*
> See
> There is also an abstract layer that works both with lists and tuples:  
> 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