[issue5237] Allow auto-numbered replacement fields in str.format() strings
David W. Lambert
report at bugs.python.org
Fri Feb 13 15:39:08 CET 2009
David W. Lambert <lambertdw at corning.com> added the comment:
Answering first question msg81873.
Without colon separator, this might be considered confusing:
>>> (
... '{d}{s}{f}{f}'.format(3, 'foo', 3.14, 2.72),
... '{d}{s}{f}{f}'.format(d=3, s='foo', f=3.14)
... )
('3foo3.1400002.720000', '3foo3.143.14')
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5237>
_______________________________________
More information about the Python-bugs-list
mailing list