[issue18512] sys.stdout.write does not allow bytes in Python 3.x
Richard Oudkerk
report at bugs.python.org
Sat Jul 20 12:50:23 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue18512>
_______________________________________
More information about the Python-bugs-list
mailing list