Author gruszczy
Recipients ebehar, eric.smith, ezio.melotti, gruszczy, r.david.murray, rhettinger
Date 2010-03-19.22:33:13
SpamBayes Score 7.60565e-08
Marked as misclassified No
Message-id <1269037995.09.0.914469944818.issue6081@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-03-19 22:33:15gruszczysetrecipients: + gruszczy, rhettinger, eric.smith, ezio.melotti, r.david.murray, ebehar
2010-03-19 22:33:15gruszczysetmessageid: <1269037995.09.0.914469944818.issue6081@psf.upfronthosting.co.za>
2010-03-19 22:33:13gruszczylinkissue6081 messages
2010-03-19 22:33:13gruszczycreate