Serhiy Storchaka added the comment: 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. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29104> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com