You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
string.Formatter class not allowing {.field} #88662
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-06-23.07:26:04.217>labels= ['3.8', 'type-bug', 'library']
title='string.Formatter class not allowing {.field}'updated_at=<Date2021-11-03.13:39:08.555>user='https://bugs.python.org/avdwoude'
I expected the custom Formatter to behave the same as the normal "".format() function, but unnamed args or not supported.
Below is an example, which fails at a KeyError.
Activity
avdwoude commentedon Jun 23, 2021
I expected the custom Formatter to behave the same as the normal "".format() function, but unnamed args or not supported.
Below is an example, which fails at a KeyError.
print("Normal format() is {.msg}".format(t))
ericvsmith commentedon Nov 3, 2021
I think this is a dupe of bpo-27307.
encukou commentedon Jan 31, 2025
Fixed by: #21767