Eric Smith <e...@trueblade.com> added the comment:

Right. The colon would be required if there's a format specifier. Or an
exclamation if there's just a conversion specifier:

"{!r}{:f}{!s:^10}".format('foo', 3, 10)
would give:
"'foo'3.000000    10    "

I've attached a new version that includes format specifiers.

Added file: http://bugs.python.org/file13073/auto_number_formatter_1.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to