[Python-Dev] Exception needed: Not enough arguments to PyArg_ParseTuple

2005-03-14 Thread Edward C. Jones
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? If so, I suggest that an exception should be raised here.

Re: [Python-Dev] Exception needed: Not enough arguments to PyArg_ParseTuple

2005-03-14 Thread Michael Hudson
Edward C. Jones [EMAIL PROTECTED] 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

Re: [Python-Dev] Exception needed: Not enough arguments to PyArg_ParseTuple

2005-03-14 Thread Greg Ewing
Edward C. Jones wrote: 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? No. There is no standard way for a C function to find out how many parameters