Passing params?

G. David Kuhlman dkuhlman at netcom.com
Thu May 20 14:15:13 EDT 1999


G. David Kuhlman <dkuhlman at netcom.com> wrote:

> A couple of examples:


> 	char * pathName;
> 	char * code;

> 	if (! PyArg_ParseTuple(args, "ss#", &pathName, &code))
> 	{
> 		Py_INCREF(Py_None);
> 		return Py_None;
> 	} // if

Oops. In my first example change:

 	if (! PyArg_ParseTuple(args, "ss#", &pathName, &code))
                                        ^
to:

 	if (! PyArg_ParseTuple(args, "ss", &pathName, &code))






More information about the Python-list mailing list