[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 python bug report before. 
Hopefully this is correct.

--
components: Interpreter Core
files: test.py
messages: 410079
nosy: Samisafool
priority: normal
severity: normal
status: open
title: SyntaxError when using dict key in fstring
type: crash
versions: Python 3.10, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50550/test.py

___
Python tracker 
<https://bugs.python.org/issue46305>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue46305>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com