Message397867
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"'. |
|
Date |
User |
Action |
Args |
2021-07-20 12:58:24 | efbqenb | set | recipients:
+ efbqenb, vstinner, ezio.melotti |
2021-07-20 12:58:24 | efbqenb | set | messageid: <1626785904.54.0.269807586162.issue44683@roundup.psfhosted.org> |
2021-07-20 12:58:24 | efbqenb | link | issue44683 messages |
2021-07-20 12:58:24 | efbqenb | create | |
|