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 pitrou
Recipients pitrou
Date 2009-02-13.14:12:53
SpamBayes Score 2.9869734e-05
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
>>> "{0:f}".format(2.5)
'2.500000'
>>> "{0:f}".format("spam")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown conversion type f

The error message should mention the type of the argument that doesn't
support the given conversion type (e.g. "Unknown conversion type f for
object of type 'float'"). Otherwise it can be very confusing.
History
Date User Action Args
2009-02-13 14:12:55pitrousetrecipients: + pitrou
2009-02-13 14:12:55pitrousetmessageid: <[email protected]>
2009-02-13 14:12:54pitroulinkissue5247 messages
2009-02-13 14:12:53pitroucreate