[issue46305] SyntaxError when using dict key in fstring

2022-01-08 Thread Samisafool
Samisafool added the comment: Huh, it does seem to be intentional. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46305] SyntaxError when using dict key in fstring

2022-01-08 Thread Samisafool
Samisafool added the comment: Is that intended behaviour? It works though. -- ___ Python tracker <https://bugs.python.org/issue46305> ___ ___ Python-bugs-list m

[issue46305] SyntaxError when using dict key in fstring

2022-01-07 Thread Samisafool
New submission from Samisafool : SyntaxError when using dict key in fstring Attached is a python file where this bug is visible. The error is different on CPython 3.8 and 3.9/3.10, interestingly. Occurs on CPython 3.8-10 and PyPy 3.8 7.3.7 Not sure which component to select, never filed a