STINNER Victor <victor.stin...@haypocalc.com> added the comment: Updated patch: - Some parts have been applied in other issues - Remove assert(PyBytes_Check(x)): support PyByteArray type - use PyErr_Format() instead of sprintf+PyErr_SetString in tokenizer.c - don't convert message to byte and then back to unicode in err_input(): keep the unicode object
---------- Added file: http://bugs.python.org/file17002/surrogates-7.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8242> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com