[docs] [issue18512] sys.stdout.write does not allow bytes in Python 3.x
Ezio Melotti
report at bugs.python.org
Sat Aug 10 17:51:47 CEST 2013
Ezio Melotti added the comment:
> You can do
> sys.stdout.buffer.write(b"hello")
Note that this might not work when sys.stdout has been replaced with something else (e.g. a StringIO).
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18512>
_______________________________________
More information about the docs
mailing list