[issue18512] sys.stdout.write does not allow bytes in Python 3.x
10 Aug
2013
10 Aug
'13
3:51 p.m.
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@bugs.python.org> <http://bugs.python.org/issue18512> _______________________________________
4171
Age (days ago)
4171
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ezio Melotti