Re: [capi-sig] Better way to PyArg_ParseTuple

AFAIK there isn't,
if you wanted to avoid parsing it you could replace 's' with 'O' so at least its type won't be checked.
On Wed, Nov 7, 2012 at 12:21 PM, Robert Steckroth <robertsteckroth@gmail.com> wrote:
Hello Gang, I was wondering about a better way to accept dummy arguments in a object. *PyArg_ParseTuple(args, "|ssi", &meh, &path, &font_size) )*
I would like to omit the* meh variable for a null pointer instead like this. * *PyArg_ParseTuple(args, "|ssi", NULL, &path, &font_size) )*
This become necessary when args are passing from one object to another with Py_Tuple creations.
Any thoughts?
-- Bust0ut, Surgemcgee: Systems Engineer --- surgemcgee.com Django_Teamplate3d
capi-sig mailing list capi-sig@python.org http://mail.python.org/mailman/listinfo/capi-sig
--
- Campbell
participants (1)
-
Campbell Barton