Eric V. Smith <e...@trueblade.com> added the comment:
At first glance, it looks like: if(!(PyArg_ParseTuple(args,"s",s))) return NULL; should be: if(!(PyArg_ParseTuple(args,"s",&s))) return NULL; The docs say: "A pointer to an existing string is stored in the character pointer variable whose address you pass." ---------- nosy: +eric.smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45911> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com