You could use a format like "#s#sO", and then use PyFloat_Check,
PyFloat_AsDouble, and the equivalent PyInt macros to get the "C" value out of
the Python object.
You should be able to use the converter "O&" to get what you want. The
conversion function might look like:
int double_only(PyO
Nice !
Thank you very much : it works well with "s#s#O"
And also thank you for your advice to insert PyErr_Clear() when several
calls to PyArgParseTuple are performed in the same method.
bye
FJ
--
http://mail.python.org/mailman/listinfo/python-list