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: <1464331513.62.0.216689365166.issue7951@psf.upfronthosting.co.za> |
2016-05-27 06:45:13 | marco.buttu | link | issue7951 messages |
2016-05-27 06:45:13 | marco.buttu | create | |
|