David W. Lambert <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue5237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com