Re: PyArg_ParseTupleAndKeywords in Python3.1

2009-12-18 Thread Case Vanhorsen
ay of specifying default values . > Regards, > Emeka kwlist just specifies the names. The default values are specified by "int a=65, b=66;". 65 is equivalent to 'A' and 66 is equivalent to 'B'. casevh > > On Fri, Dec 18, 2009 at 3:02 PM, Case Vanhorsen wrote:

Re: PyArg_ParseTupleAndKeywords in Python3.1

2009-12-18 Thread Case Vanhorsen
On Fri, Dec 18, 2009 at 2:26 AM, Emeka wrote: >    char *kwlist[] = {"a", "b", NULL}; >    if (!PyArg_ParseTupleAndKeywords(args, kwrds, "|CC", kwlist, &a, > &b)) > I am yet to understand what pointer kwlist[] does and why it is needed? > Regards, > Emeka foo is designed to accept two arguments t