API : constness ?

Benoît Dejean bnet at ifrance.com
Sun May 30 06:51:42 EDT 2004


i don't understand why the ANSI const keyword is never used in the API. eg

PyArg_ParseTuple( PyObject *args, char *format, ...)

should be

PyArg_ParseTuple( PyObject *args, const char *format, ...)

or 

PyArg_ParseTuple( const PyObject *args, const char *format, ...)


so i spend my time casting my format argument ...



More information about the Python-list mailing list