Author serhiy.storchaka
Recipients cameron, eric.smith, serhiy.storchaka, steven.daprano
Date 2021-06-09.08:14:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623226473.96.0.0347623609544.issue44355@roundup.psfhosted.org>
In-reply-to
Content
Syntax of format strings cannot be the same as in f-strings. {0} means the first positional argument in format string an integer literal 0 in f-string. {a[x]} means the value of literal string key "x" of keyword argument a in format string, and indexing variable a with variable index/key x in f-string. Such things as {if}, {+.name} or {0[-]} are not even valid in f-strings.

Since we cannot get rid of all differences between format strings and f-strings, I do not think that this one change is worth. It will only make differences more complex. Not mentioning that it is a compatibility breaking change, and can break user code.
History
Date User Action Args
2021-06-09 08:14:34serhiy.storchakasetrecipients: + serhiy.storchaka, eric.smith, cameron, steven.daprano
2021-06-09 08:14:33serhiy.storchakasetmessageid: <1623226473.96.0.0347623609544.issue44355@roundup.psfhosted.org>
2021-06-09 08:14:33serhiy.storchakalinkissue44355 messages
2021-06-09 08:14:33serhiy.storchakacreate