Georg Brandl added the comment: In Python 3, "hello\n" is a Unicode string. printf() expects a byte string, so you should use b"hello\n" (or s.encode() for string object named "s").
---------- nosy: +georg.brandl resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19231> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com