Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
We can't change this API because this would break virtually all user code. But we can introduce a macro like PY_SSIZE_T_CLEAN. If it is defined before including Python.h, PyArg_ParseTupleAndKeywords() will take an array of const strings. This will help for compatibility with C++. ---------- nosy: +serhiy.storchaka type: resource usage -> enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21011> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com