Antoine Pitrou <[email protected]> added the comment: > Allright, what's the expected behaviour then - implicitly converting > unicode to bytes (like C RawFileIO), or raising a typeerror (like > buffered streams do) ?
Sorry, I should have been clearer. The expected behaviour is to raise a TypeError. The new io module was written for Python 3, where you shouldn't mix bytes and unicode strings and expect things to work. ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue8765> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
