[issue38964] Output of syntax error in f-string contains wrong filename

Pablo Galindo Salgado report at bugs.python.org
Wed Dec 4 10:06:45 EST 2019


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

> Additionally, the idea of moving f-strings into the Python grammar would also fix this problem. That might be a better way forward, although it has a number of downsides, too.

For considerin this path we would need to wait to see first the future of the new experiment with the PEG parser to avoid potentially throwing away all the work in the parser and the tokenizer. Also, this approach will likely entail much more changes than reworking the error reporting code.

----------

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


More information about the Python-bugs-list mailing list