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 <rep...@bugs.python.org> <http://bugs.python.org/issue18512> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com