Message115910
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' |
|
| Date |
User |
Action |
Args |
| 2010-09-08 22:29:00 | Ken.Basye | set | recipients:
+ Ken.Basye, docs@python |
| 2010-09-08 22:29:00 | Ken.Basye | set | messageid: <1283984940.33.0.465087277404.issue9805@psf.upfronthosting.co.za> |
| 2010-09-08 22:28:58 | Ken.Basye | link | issue9805 messages |
| 2010-09-08 22:28:58 | Ken.Basye | create | |
|