New submission from Matt Delengowski <matt.delengow...@gmail.com>:

Example code


```
foo = 1
f"blank (open paren {foo )"
```

Error report

  File "<stdin>", line 1
    f"blank (open paren {foo )"
                               ^
SyntaxError: f-string: unmatched ')'

The problem is due to unmatched '}' however.

----------
components: Parser
messages: 409709
nosy: Delengowski, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Misleading SyntaxError on f-string
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46260>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to