New submission from Dan Snider <mr.assume.a...@gmail.com>: For example the following f-string
f'{1):.1%}' IDLE will scroll to the top of the file and highlight a random and irrelevant line (not sure what it's doing tbh). running the expression with `exec` makes it look like implicit parenthesis are added to the ends of files.. >>> exec("f'{1):.1f}'") Traceback (most recent call last): File "<pyshell#2860>", line 1, in <module> exec("f'{1):.1f}'") File "<fstring>", line 1 (1)) ^ SyntaxError: unexpected EOF while parsing IDLE can correctly find a `(1))` in a file but appears to fail only in f-string expressions. ---------- assignee: terry.reedy components: IDLE messages: 310117 nosy: bup, terry.reedy priority: normal severity: normal status: open title: IDLE cannot locate certain SyntaxErrors raised by f-string expressions versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32575> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com