Author serhiy.storchaka
Recipients Mariatta, docs@python, ncoghlan, nkerr, serhiy.storchaka
Date 2018-02-04.06:28:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517725730.78.0.467229070634.issue32720@psf.upfronthosting.co.za>
In-reply-to
Content
What about arg_name and element_index?

>>> '{}'.format(123)
'123'
>>> '{0}'.format(123)
'123'
>>> '{0x0}'.format(123)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '0x0'
>>> '{0_0}'.format(123)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '0_0'
>>> '{0[0]}'.format([123])
'123'
>>> '{0[0x0]}'.format([123])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: list indices must be integers or slices, not str
>>> '{0[0_0]}'.format([123])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: list indices must be integers or slices, not str
History
Date User Action Args
2018-02-04 06:28:50serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, docs@python, nkerr, Mariatta
2018-02-04 06:28:50serhiy.storchakasetmessageid: <1517725730.78.0.467229070634.issue32720@psf.upfronthosting.co.za>
2018-02-04 06:28:50serhiy.storchakalinkissue32720 messages
2018-02-04 06:28:50serhiy.storchakacreate