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 eric.smith
Recipients eric.smith, py.user
Date 2012-01-15.05:57:34
SpamBayes Score 0.00010119675
Marked as misclassified No
Message-id <1326607055.16.0.76433371333.issue13790@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-01-15 05:57:35eric.smithsetrecipients: + eric.smith, py.user
2012-01-15 05:57:35eric.smithsetmessageid: <1326607055.16.0.76433371333.issue13790@psf.upfronthosting.co.za>
2012-01-15 05:57:34eric.smithlinkissue13790 messages
2012-01-15 05:57:34eric.smithcreate