Message266481
The error message is misleading:
>>> s = '{names[-1]} loves {0[1]}'
>>> s.format(('C', 'Python'), names=('Dennis', 'Guido'))
Traceback (most recent call last):
...
TypeError: tuple indices must be integers or slices, not str |
|
| Date |
User |
Action |
Args |
| 2016-05-27 06:45:13 | marco.buttu | set | recipients:
+ marco.buttu, rhettinger, terry.reedy, mark.dickinson, eric.smith, kisielk, eric.araujo, mrabarnett, flox, docs@python, gosella, BreamoreBoy, Todd.Rovito |
| 2016-05-27 06:45:13 | marco.buttu | set | messageid: <[email protected]> |
| 2016-05-27 06:45:13 | marco.buttu | link | issue7951 messages |
| 2016-05-27 06:45:13 | marco.buttu | create | |
|