This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:24eric.smithsetrecipients: + eric.smith, terry.reedy, LambertDW
2009-02-13 04:07:24eric.smithsetmessageid: <1234498044.91.0.490167565262.issue5237@psf.upfronthosting.co.za>
2009-02-13 04:07:23eric.smithlinkissue5237 messages
2009-02-13 04:07:23eric.smithcreate