[issue29051] Improve error reporting involving f-strings (PEP 498)

R. David Murray report at bugs.python.org
Fri Dec 23 08:55:37 EST 2016


R. David Murray added the comment:

These are not problems with f-strings in particular, they are problems in general with the way python parsing and error reporting happens.  The second is presumably (I haven't gotten around to understanding how f-strings work under the hood) an example of error reporting from a separately evaled string.

Improvements in this area are certainly welcome.  There is an open issue relevant to your first example, issue 12458.  I'm sure that f-strings complicate the solution at least slightly, but I think there are more fundamental pre-requisites to be addressed first in solving it.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29051>
_______________________________________


More information about the Python-bugs-list mailing list