Serhiy Storchaka added the comment: Python strings contain characters, not bytes. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27481> _______________________________________