Message83546
| Author |
eric.smith |
| Recipients |
LambertDW, eric.smith, ezio.melotti, gvanrossum, mark.dickinson, ncoghlan, orsenthil, pitrou, terry.reedy |
| Date |
2009年03月13日.23:51:03 |
| SpamBayes Score |
0.00010888756 |
| Marked as misclassified |
No |
| Message-id |
<1236988287.94.0.772153678696.issue5237@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm thinking of allowing you to mix keywords and auto-numbering, but not
manual numbering and auto-numbering. This would be so we could do:
>>> '{:{fmt}} {:{fmt}}'.format(3.1415, 2.71828, fmt='1.4f')
'pi=3.1415 e=2.7183'
Unfortunately the ':' is required, because if it's not there you have 2
braces next to each other, which is the escape sequence for a single brace. |
|