Message151279
I agree it's not the best error message. What's happening is that these types (list, tuple, etc.) do not implement __format__, so object.__format__ is used. It returns str(self). Then the resulting string is formatted with the given format_spec. Since str does not support the 'd' format type, the error you see is raised.
I'm open to suggestions on how to improve this, but I don't see how it's possible given what str.__format__ knows when it generates the error. |
|
Date |
User |
Action |
Args |
2012-01-15 05:57:35 | eric.smith | set | recipients:
+ eric.smith, py.user |
2012-01-15 05:57:35 | eric.smith | set | messageid: <1326607055.16.0.76433371333.issue13790@psf.upfronthosting.co.za> |
2012-01-15 05:57:34 | eric.smith | link | issue13790 messages |
2012-01-15 05:57:34 | eric.smith | create | |
|