New submission from gKuhn <gregoryk...@gmail.com>:
Attempting to parse the following python code results in a fairly unhelpful syntax error along with an incorrect line number being reported: #a dodgy f-string def dodgy(**kwargs): print(f"{**kwargs}") The result: File "<fstring>", line 1 (**kwargs) ^ SyntaxError: invalid syntax $ python -VV Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] ---------- messages: 379977 nosy: gkuhn priority: normal severity: normal status: open title: Incorrect line reported in syntax error type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42209> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com