Parsing tuples in C extension
Mark Hammond
MarkH at ActiveState.com
Wed Oct 18 18:43:26 EDT 2000
PyArg_ParseTuple will work on any tuple.
Eg, if you have nested tuples, you could use PyArg_ParseTuple(args,
"000", t1, t2, t3), then PyArg_ParseTuple(t1, "iii", &i1)
(assuming relevant error checking, of course :-)
Mark.
--
markh at activestate.com - but if you think I speak for them, you dont
know Dick!
<chris_barker at my-deja.com> wrote in message
news:8sl63k$jku$1 at nnrp1.deja.com...
> Is there a function similar to PyArg_ParseTuple(...) that you can
use to
> parse a tuple that is not the args tuple?
>
More information about the Python-list
mailing list