Antoine Pitrou <pit...@free.fr> added the comment: Unfortunately, `'{d}{s}{f}'.format(3, 'foo', 3.14)` can't work as you expect it to, because it already means "display the keyword arguments named `d`, `s` and `f`.
(I agree that the syntax for format() strings is exceedingly tedious) On the other hand, `'{:d}{:s}{:f}'.format(3, 'foo', 3.14)` should be possible. ---------- nosy: +pitrou _______________________________________ 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