PyArg_ParseTuple and float/double - Solution

Michael Gross mdgrosse at sbox.tugraz.at
Wed Jul 30 14:25:51 EDT 2003


> it seems, that I cant use float and double arguments with 
> PyArg_ParseTuple:
The problem was, that there was an error from another PyArg_ParseTuple 
in another method before, so PyError_Occured() was true and 
PyArg_ParseTuple test for this when parsing a double or float argument. 
So a call to PyErr_Clear helps.

thx
   Michael





More information about the Python-list mailing list