This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author py.user
Recipients py.user
Date 2012-01-15.05:31:17
SpamBayes Score 4.573955e-05
Marked as misclassified No
Message-id <1326605478.95.0.601079964751.issue13790@psf.upfronthosting.co.za>
In-reply-to
Content
>>> '{0:d}'.format('a')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'd' for object of type 'str'
>>> '{0:d}'.format(1+1j)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'd' for object of type 'complex'
>>> '{0:d}'.format([])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'd' for object of type 'str'
>>>

also strange behavior:
>>> '{0:s}'.format((1, 2, 3))
'(1, 2, 3)'
>>> '{0:10.5s}'.format([1, 2, 3])
'[1, 2     '
>>>
History
Date User Action Args
2012-01-15 05:31:19py.usersetrecipients: + py.user
2012-01-15 05:31:18py.usersetmessageid: <1326605478.95.0.601079964751.issue13790@psf.upfronthosting.co.za>
2012-01-15 05:31:18py.userlinkissue13790 messages
2012-01-15 05:31:17py.usercreate