Makefile.am: Define PY_SSIZE_T_CLEAN macro

Status
Not open for further replies.

GitHub

Moderator
Makefile.am: Define PY_SSIZE_T_CLEAN macro

PY_SSIZE_T_CLEAN macro must be defined to call Py_parsetuple() with '#" format, to avoid 'SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats'.
Which leads in turn to 'TypeError: 1st arg must be a string, optionaly 2nd arg can be the string length' error.

See
Also

Thanks Maros861.

Continue reading...
 
Status
Not open for further replies.
Back
Top