Message81873
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. |
|
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 | |
|