Message81873
| Author |
eric.smith |
| Recipients |
LambertDW, eric.smith, terry.reedy |
| Date |
2009年02月13日.04:07:23 |
| SpamBayes Score |
1.2887734e-05 |
| Marked as misclassified |
No |
| Message-id |
<1234498044.91.0.490167565262.issue5237@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
How is:
'{d}{s}{f}'.format(3, 'foo', 3.14)
more unclear than:
'%d%s%f' % (3, 'foo', 3.14)
?
But the more I think about it, the more I think it would have to be:
'{:d}{:s}{:f}'.format(3, 'foo', 3.14)
Since "{0:0}" is a legitimate format string, I need some way to tell
whether "{0}" is missing the positional parameter or is missing the
format specifier. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年02月13日 04:07:24 | eric.smith | set | recipients:
+ eric.smith, terry.reedy, LambertDW |
| 2009年02月13日 04:07:24 | eric.smith | set | messageid: <1234498044.91.0.490167565262.issue5237@psf.upfronthosting.co.za> |
| 2009年02月13日 04:07:23 | eric.smith | link | issue5237 messages |
| 2009年02月13日 04:07:23 | eric.smith | create |
|