Message104410
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. |
|
Date |
User |
Action |
Args |
2010-04-28 04:57:29 | mcjeff | set | recipients:
+ mcjeff, docs@python |
2010-04-28 04:57:27 | mcjeff | set | messageid: <1272430647.21.0.217416978231.issue8556@psf.upfronthosting.co.za> |
2010-04-28 04:57:23 | mcjeff | link | issue8556 messages |
2010-04-28 04:57:21 | mcjeff | create | |
|