Lysandros Nikolaou <lisandros...@gmail.com> added the comment:

> What happens with:

>>> "Ṕýţĥòñ" +

Exact same thing. The offset is 16 at the start and gets decreased to 15 in the 
line I linked to in my previous post. And then col_offset gets converted to 
col_number which is 9, which seems correct.

Although it is correct, it feels correct by accident, since the if-branch on 
https://github.com/python/cpython/blob/e2fb8a2c42ee60c72a40d93da69e9efc4e359023/Parser/pegen.c#L154
 only evaluates to false due to the decrease of size and I don't know if that 
was intended.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40958>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to