Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
> Is this expected? Yes, is an edge case of python identifiying two tokens together except that there is no space: >>> 3 4 File "<stdin>", line 1 3 4 ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? I honestly don't share your concerns that these things are "misleading". The caret is pointing to the token that is incorrect 0777. The tokenizer errors always point at the end of the token (we still have not implemented ranged errors for the tokenizer). This is true in all the cases you present. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44317> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com