Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment: Don't use ord('x'). Use just 'x' or b'x'[0]. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue32940> _______________________________________