[issue46004] Incorrect bad token identified in 3.10.1

Pablo Galindo Salgado report at bugs.python.org
Tue Dec 7 10:24:54 EST 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

>    From (https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator), this is what was shown for Python 3.10.0

Yeah, we are not showing that anymore as we only trigger the error when it happens inside collections to avoid many of the false positives we were seeing.

This PR fixes the problem to point to the correct token, but still show "syntax error"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46004>
_______________________________________


More information about the Python-bugs-list mailing list