PyListObject & C Modules

Martin v. Loewis martin at
Thu Sep 5 20:24:41 CEST 2002

jggramlich at (Joshua Gramlich) writes:

>   if(!PyArg_ParseTuple(args, "!O", &list))
> TypeError: argument 1 must be impossible<bad format char>, not tuple

The format string is in error. "O" means "arbitrary object". "O!"
means "object of required type" (which you have to provide to
ParseTuple as well), "!O" is meaningless.


More information about the Python-list mailing list