Message81930
| Author |
pitrou |
| Recipients |
LambertDW, eric.smith, ezio.melotti, mark.dickinson, pitrou, terry.reedy |
| Date |
2009年02月13日.14:09:43 |
| SpamBayes Score |
2.2135528e-06 |
| Marked as misclassified |
No |
| Message-id |
<1234534184.57.0.555448268805.issue5237@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Unfortunately, `'{d}{s}{f}'.format(3, 'foo', 3.14)` can't work as you
expect it to, because it already means "display the keyword arguments
named `d`, `s` and `f`.
(I agree that the syntax for format() strings is exceedingly tedious)
On the other hand, `'{:d}{:s}{:f}'.format(3, 'foo', 3.14)` should be
possible. |
|