[Python-Dev] Exception needed: Not enough arguments to
PyArg_ParseTuple
Michael Hudson
mwh at python.net
Mon Mar 14 16:28:43 CET 2005
"Edward C. Jones" <edcjones at comcast.net> writes:
> I had
>
> PyArg_ParseTuple(args, "s#s#i:compare", &p1, &bytes1, &p2, &bytes2)
>
> in a program. There are not enough arguments to PyArg_ParseTuple. Does
> PyArg_ParseTuple know how many arguments it is getting?
I don't think so.
> If so, I suggest that an exception should be raised here.
I think you'd need to do battle with ISO C first.
Cheers,
mwh
--
Counting lines is probably a good idea if you want to print it out
and are short on paper, but I fail to see the purpose otherwise.
-- Erik Naggum, comp.lang.lisp
More information about the Python-Dev
mailing list