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 mcjeff
Recipients docs@python, mcjeff
Date 2010-04-28.04:57:19
SpamBayes Score 0.022911021
Marked as misclassified No
Message-id <1272430647.21.0.217416978231.issue8556@psf.upfronthosting.co.za>
In-reply-to
Content
I was going through the string formatting examples this evening and noticed this:

print '%(language)s has %(#)03d quote types.' % \
          {'language': "Python", "#": 2}


The example uses a '#' as a map key. This is somewhat misleading as if we had simply left the parenthesis off, the '#' would have been interpreted as an alternate conversion flag. Should be updated to use a more verbose (and less confusing) dictionary key.
History
Date User Action Args
2010-04-28 04:57:29mcjeffsetrecipients: + mcjeff, docs@python
2010-04-28 04:57:27mcjeffsetmessageid: <1272430647.21.0.217416978231.issue8556@psf.upfronthosting.co.za>
2010-04-28 04:57:23mcjefflinkissue8556 messages
2010-04-28 04:57:21mcjeffcreate