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 Ken.Basye
Recipients Ken.Basye, docs@python
Date 2010-09-08.22:28:58
SpamBayes Score 2.3223161e-09
Marked as misclassified No
Message-id <1283984940.33.0.465087277404.issue9805@psf.upfronthosting.co.za>
In-reply-to
Content
If someone's going to fix this, perhaps they might consider also adding the following clarification sentence after 'The mapping key selects the value to be formatted from the mapping.'  

The mapping key is interpreted as a string; a key error is raised if the dictionary does not have a matching string key. 

I don't think it's worth adding it, but consider this example:
>>> d = {2:2, '2':'two'}
>>> '%(2)s' % d
'two'
History
Date User Action Args
2010-09-08 22:29:00Ken.Basyesetrecipients: + Ken.Basye, docs@python
2010-09-08 22:29:00Ken.Basyesetmessageid: <1283984940.33.0.465087277404.issue9805@psf.upfronthosting.co.za>
2010-09-08 22:28:58Ken.Basyelinkissue9805 messages
2010-09-08 22:28:58Ken.Basyecreate