Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: The 3.1 version does it correctly since issue7785, but this was not backported to 2.x. Python 3.x uses the "y*" format code to accept bytes and not unicode; this code does not exist in 2.x, and was replaced with "s*", which accepts unicode. But since the io module is designed up front to forbid default conversion between bytes and unicode, I think it's safe to change the code as suggested.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8765> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com