[issue46260] Misleading SyntaxError on f-string

Matt Delengowski report at bugs.python.org
Wed Jan 5 08:09:23 EST 2022


Matt Delengowski <matt.delengowski at gmail.com> added the comment:

Hi Eric,

I see what are you referring to. Like you said unintuitive but still correct. Do you think it would be worthwhile to change the order of the checking such that '}' is always first? Or could the same edge case still appear but just the other way around?

Either way, thanks for looking into this and sorry for the trouble.

----------

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


More information about the Python-bugs-list mailing list