Author jitterman
Recipients crwilcox, jitterman, zach.ware
Date 2020-02-10.23:44:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581378284.43.0.593850029735.issue39601@roundup.psfhosted.org>
In-reply-to
Content
My expectation is that doubling up the braces acts to escape them, meaning that characters between the braces is treated as simple text and passed to the __format__ method as is. The only processing that should occur on the format specification is to convert the double braces to single braces. The fact that an error occurs saying that 'v' is not defined before the __format__ method is ever called indicates that the contents of the braces are being evaluated as an expression, which fails because v is not defined in the outer scope.  Thus the f-string seems to be ignoring the escaping of the braces, but it only does so in the format specifier.
History
Date User Action Args
2020-02-10 23:44:44jittermansetrecipients: + jitterman, zach.ware, crwilcox
2020-02-10 23:44:44jittermansetmessageid: <1581378284.43.0.593850029735.issue39601@roundup.psfhosted.org>
2020-02-10 23:44:44jittermanlinkissue39601 messages
2020-02-10 23:44:44jittermancreate