[issue8765] Tests unwillingly writing unicocde to raw streams
Antoine Pitrou
report at bugs.python.org
Thu May 20 18:15:44 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> The initial problem here is that we can't write unicode to a buffered
> binary stream (TypeError), but we can do it with an unbufferred raw
> stream - as the C implementation of the latter does string coercion
> instead of raising TypeError.
> Shouldn't we unify the behaviour of binary streams in such cases ?
Yes, we certainly should. This is probably an oversight or a bug.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8765>
_______________________________________
More information about the Python-bugs-list
mailing list