Parsing tuples in C extension

chris_barker at my-deja.com chris_barker at my-deja.com
Wed Oct 18 17:52:56 EDT 2000


Is there a function similar to PyArg_ParseTuple(...) that you can use to
parse a tuple that is not the args tuple?

It seems like it would be very similar, and handy. In my case, I have a
list of tuples that is passed in, and I want to get at the values in
those tuples. I know I can use PyTuple_GetItem, but then I get a bunch
of Python number objects that I have to convert. Py_ParseTuple sure
would be easier.

Can I just use PyArg_ParseTuple ?? Is there an easier way??

Please CC me if you can.

thanks,
-Chris

cbarker at jps.net


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list