[issue8765] Tests unwillingly writing unicocde to raw streams
Antoine Pitrou
report at bugs.python.org
Thu May 20 19:54:03 CEST 2010
Antoine Pitrou <pitrou at free.fr> 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 <report at bugs.python.org>
<http://bugs.python.org/issue8765>
_______________________________________
More information about the Python-bugs-list
mailing list