Message81931
>>> "{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. |
|
| Date |
User |
Action |
Args |
| 2009-02-13 14:12:55 | pitrou | set | recipients:
+ pitrou |
| 2009-02-13 14:12:55 | pitrou | set | messageid: <1234534375.72.0.877493256836.issue5247@psf.upfronthosting.co.za> |
| 2009-02-13 14:12:54 | pitrou | link | issue5247 messages |
| 2009-02-13 14:12:53 | pitrou | create | |
|