Ken Basye <ken.ba...@gmail.com> added the comment:

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'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9805>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to