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 vinay.sajip
Recipients alan.briolat, vinay.sajip
Date 2014-04-08.10:56:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396954617.29.0.755157984085.issue21172@psf.upfronthosting.co.za>
In-reply-to
Content
I wouldn't say it is a bug, as it is working as documented - though you might say it is a request for enhancement. The documentation for string formatting at

https://docs.python.org/2/library/stdtypes.html#string-formatting-operations

says that the argument should be a "single mapping object", and, further down the same page at

https://docs.python.org/2/library/stdtypes.html#mapping-types-dict

it's clear that the mapping protocol is more than just __getitem__. Although perhaps currently only __getitem__ is used, who's to say that such will always remain the case?

Removing Python versions 3.2, 3.3 (security fixes only).
History
Date User Action Args
2014-04-08 10:56:57vinay.sajipsetrecipients: + vinay.sajip, alan.briolat
2014-04-08 10:56:57vinay.sajipsetmessageid: <1396954617.29.0.755157984085.issue21172@psf.upfronthosting.co.za>
2014-04-08 10:56:57vinay.sajiplinkissue21172 messages
2014-04-08 10:56:56vinay.sajipcreate