STINNER Victor added the comment: str[a:b] returns a substring (characters), not an array of code points (numbers). ---------- nosy: +haypo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21667> _______________________________________