Author terry.reedy
Recipients Todd.Rovito, eric.araujo, eric.smith, flox, gosella, kisielk, mark.dickinson, mrabarnett, rhettinger, terry.reedy
Date 2014-04-12.02:40:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397270449.56.0.423086344465.issue7951@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-04-12 02:40:49terry.reedysetrecipients: + terry.reedy, rhettinger, mark.dickinson, eric.smith, kisielk, eric.araujo, mrabarnett, flox, gosella, Todd.Rovito
2014-04-12 02:40:49terry.reedysetmessageid: <1397270449.56.0.423086344465.issue7951@psf.upfronthosting.co.za>
2014-04-12 02:40:49terry.reedylinkissue7951 messages
2014-04-12 02:40:48terry.reedycreate