[issue46260] Misleading SyntaxError on f-string
Eric V. Smith
report at bugs.python.org
Wed Jan 5 08:23:29 EST 2022
Eric V. Smith <eric at trueblade.com> added the comment:
No trouble. I'm glad to know it wasn't actually the same error as plain "foo)" (although the error message is the same). That would have concerned me.
Changing the code so that it doesn't error out on the first problem it sees, but keeps looking for a different type of error and then maybe backtracks or re-parses would be a lot of work, and I think we'd just end up with a different class of errors.
I'm going to close this. Maybe when/if we move f-strings to the real parser we can look at this issue again.
----------
resolution: -> later
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46260>
_______________________________________
More information about the Python-bugs-list
mailing list