Message151725
OK, the example of an empty format spec should be dropped. Let people figure it out ;-).
>>> format([], 'd')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'd' for object of type 'str'
One possibility is to give (str of) the object instead of the type:
ValueError: Unknown format code 'd' for object '[]'
The downside is a long message for long strings. It would need to be limited (as is done in test error reports). |
|
Date |
User |
Action |
Args |
2012-01-21 05:56:25 | terry.reedy | set | recipients:
+ terry.reedy, eric.smith, r.david.murray, docs@python, py.user |
2012-01-21 05:56:25 | terry.reedy | set | messageid: <1327125385.02.0.628755184945.issue13790@psf.upfronthosting.co.za> |
2012-01-21 05:56:24 | terry.reedy | link | issue13790 messages |
2012-01-21 05:56:24 | terry.reedy | create | |
|