This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bup
Recipients bup, terry.reedy
Date 2018-01-16.22:16:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516140962.04.0.467229070634.issue32575@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-01-16 22:16:02bupsetrecipients: + bup, terry.reedy
2018-01-16 22:16:02bupsetmessageid: <1516140962.04.0.467229070634.issue32575@psf.upfronthosting.co.za>
2018-01-16 22:16:01buplinkissue32575 messages
2018-01-16 22:16:01bupcreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.