Richard Oudkerk added the comment:
You can do
sys.stdout.buffer.write(b"hello")
See
http://docs.python.org/dev/library/io.html?highlight=buffer#io.TextIOBase.buffer
----------
nosy: +sbt
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18512>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com