[capi-sig] Better way to PyArg_ParseTuple

Robert Steckroth robertsteckroth at gmail.com
Wed Nov 7 02:21:37 CET 2012


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


More information about the capi-sig mailing list