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 efbqenb
Recipients efbqenb, ezio.melotti, vstinner
Date 2021-07-20.12:58:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626785904.54.0.269807586162.issue44683@roundup.psfhosted.org>
In-reply-to
Content
The formatting does not work correctly.

I have a dict with string representations of integers as keys, such as {'1': 'a'} and trying to format it this way: '{0[1]}' and KeyError occurs. But I think it should not as '{0[a]}'.format(a) works properly with a = {'a': '1'} and '{0[1]}'.format(a) works properly with a = {1: 'a'}. Adding quotation marks does not help, KeyError occurs with '"1"'.
History
Date User Action Args
2021-07-20 12:58:24efbqenbsetrecipients: + efbqenb, vstinner, ezio.melotti
2021-07-20 12:58:24efbqenbsetmessageid: <1626785904.54.0.269807586162.issue44683@roundup.psfhosted.org>
2021-07-20 12:58:24efbqenblinkissue44683 messages
2021-07-20 12:58:24efbqenbcreate