Antoine Pitrou <pit...@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 <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