Problems sending list/tuple to a C extension.

Christian Seberino seberino at spawar.navy.mil
Sat Nov 22 20:39:01 CET 2003


Martin

Thanks for your reply.  I found an example on python.org
of parens for PyArg_ParseTuple at

http://python.org/doc/current/ext/parseTuple.html

And an example of parens AND square brackets for Py_BuildValue at:

http://python.org/doc/current/ext/buildValue.html

but you are right... no square bracket for PyArg_ParseTuple.


I was not able to get parens (tuples) to work for either
successfully.  Any ideas?

Chris


martin at v.loewis.de (Martin v. Löwis) wrote in message news:<m3oev4vc0r.fsf at mira.informatik.hu-berlin.de>...
> seberino at spawar.navy.mil (Christian Seberino) writes:
> 
> > python.org docs seem to suggest that sending in lists and tuples
> > was as simple as changing string in PyArg_ParseTuple to contain
> > parens or brackets....
> 
> What documentation are you specifically referring to? PyArg_ParseTuple
> does not support square brackets.
> 
> Regards,
> Martin




More information about the Python-list mailing list