Issue8556
Created on 2010-04-28 04:57 by mcjeff, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (5) |
|
|
msg104410 - (view) |
Author: Jeff McNeil (mcjeff) * |
Date: 2010-04-28 04:57 |
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. |
|
|
msg104667 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2010-04-30 21:23 |
Thanks for the suggestion. Two things: 1. Please provide a unified diff, as explained in http://www.python.org/dev/ 2. I think “number” would be a better placeholder. Regards |
|
|
msg104683 - (view) |
Author: Jeff McNeil (mcjeff) * |
Date: 2010-05-01 01:13 |
Attaching a patch against the trunk, unified format, changed to 'number' as per suggestion. |
|
|
msg105073 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2010-05-05 19:02 |
Looks good to me. |
|
|
msg118917 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2010-10-17 09:19 |
Committed in r85609. |
|
|
History |
|
|
|
Date |
User |
Action |
Args |
2022-04-11 14:57:00 |
admin |
set |
github: 52802 |
2010-10-17 09:19:11 |
georg.brandl |
set |
status: open -> closednosy: + georg.brandlmessages: + resolution: fixed |
2010-09-09 19:05:54 |
flox |
set |
nosy: + flox |
2010-05-05 19:02:50 |
eric.araujo |
set |
messages: + |
2010-05-01 01:13:16 |
mcjeff |
set |
files: + stdtypes.rst.trunk.patchmessages: + versions: + Python 2.7, - Python 2.6 |
2010-04-30 21:23:57 |
eric.araujo |
set |
nosy: + eric.araujomessages: + |
2010-04-28 04:57:25 |
mcjeff |
create |
|