[issue46004] Incorrect bad token identified in 3.10.1

Andre Roberge report at bugs.python.org
Tue Dec 7 01:16:04 EST 2021


Andre Roberge <andre.roberge 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

    for x range(4):
        ^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

Same as Python 3.11.0a2.

----------

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


More information about the Python-bugs-list mailing list