STINNER Victor added the comment: Ok, I changed struct.Struct.format type to str (Unicode string).
If someone wants to modify the C code to use a PyUnicodeObject rather than a char*, feel free to propose a further change. Since the initial issue is fixed, I now close the issue. Thank you all for your feedback and reviews ;-) ---------- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.7 -Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21071> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com