Filip Gruszczyński <grusz...@gmail.com> added the comment: Ok, unfortunately this code won't work for certain tests. Take those:
self.assertEqual("My name is {0}".format('Fred'), "My name is Fred") We pass only one argument, which is a dict and this won't satisfy such test. We need to think about a different way of passing those arguments there. We can do one of two thins: * the last argument of args tuple would be an object that can be subscripted for format values * keyword with above object I believe the second version is more explicit and therefore better. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6081> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com