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 serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, eric.smith, serhiy.storchaka
Date 2016-12-29.13:37:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483018659.17.0.606415332328.issue29104@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is not that the trailing } is dropped, but that the starting { starts an f-string expression.

>>> f'\{2*5}'
'\\{10'

I expected either '\\10' as in '\{}'.format(2*5), or at least '\\{2*5}'.

There is other f-string parsing error:

>>> f'\\N{2*5}'
'\\N{2*5}'

I expected '\\N10'. '\\N' doesn't start a unicode name escape. This is a legitimate expression.
History
Date User Action Args
2016-12-29 13:37:39serhiy.storchakasetrecipients: + serhiy.storchaka, eric.smith, Jim Fasarakis-Hilliard
2016-12-29 13:37:39serhiy.storchakasetmessageid: <1483018659.17.0.606415332328.issue29104@psf.upfronthosting.co.za>
2016-12-29 13:37:39serhiy.storchakalinkissue29104 messages
2016-12-29 13:37:39serhiy.storchakacreate