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 barry, eli.bendersky, eric.smith, ethan.furman, serhiy.storchaka
Date 2013-08-14.21:38:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376516317.24.0.848797129006.issue18738@psf.upfronthosting.co.za>
In-reply-to
Content
> So what you're saying is that '{:}' is empty, but '{:10}' is not?

Yes, exactly. The part before the colon says which argument to .format() to use. The empty string there means "use the next one". The part after the colon is the format specifier. In the first example above, there's an empty string after the colon, and in the second example there's a "10" after the colon.

Which is why it's really easier to use:
format(obj, '')
and
format(obj, '10')
instead of .format examples. By using the built-in format, you only need to write the format specifier, not the ''.format() "which argument am I processing" stuff with the braces and colons.
History
Date User Action Args
2013-08-14 21:38:37eric.smithsetrecipients: + eric.smith, barry, eli.bendersky, ethan.furman, serhiy.storchaka
2013-08-14 21:38:37eric.smithsetmessageid: <1376516317.24.0.848797129006.issue18738@psf.upfronthosting.co.za>
2013-08-14 21:38:37eric.smithlinkissue18738 messages
2013-08-14 21:38:37eric.smithcreate