Message215958
Either leading sign, '+' or '-', cause string interpretation, so I think 'unsigned integer' should be the term in the doc.
>>> '{0[-1]}'.format({'-1': 'neg int key'})
'neg int key'
>>> '{0[+1]}'.format({'+1': 'neg int key'})
'neg int key'
>>> '{0[+1]}'.format([1,2,3])
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
'{0[+1]}'.format([1,2,3])
TypeError: list indices must be integers, not str |
|
Date |
User |
Action |
Args |
2014-04-12 02:40:49 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, mark.dickinson, eric.smith, kisielk, eric.araujo, mrabarnett, flox, gosella, Todd.Rovito |
2014-04-12 02:40:49 | terry.reedy | set | messageid: <1397270449.56.0.423086344465.issue7951@psf.upfronthosting.co.za> |
2014-04-12 02:40:49 | terry.reedy | link | issue7951 messages |
2014-04-12 02:40:48 | terry.reedy | create | |
|