[Python-Dev] Exception needed: Not enough arguments to PyArg_ParseTuple (original) (raw)

Michael Hudson mwh at python.net
Mon Mar 14 16:28:43 CET 2005


"Edward C. Jones" <edcjones at comcast.net> writes:

I had

PyArgParseTuple(args, "s#s#i:compare", &p1, &bytes1, &p2, &bytes2) in a program. There are not enough arguments to PyArgParseTuple. Does PyArgParseTuple 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