Author vstinner
Recipients pitrou, vstinner
Date 2012-08-09.20:01:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344542506.78.0.404794794491.issue15609@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch adds tests to check that str%args and str.format(args) take all optimization opportunities for simple format strings. It takes also the fast-path when Unicode string argument when width and/or precision is set. For example, "%.3s" % "abc" now returns "abc" unmodified (instead of creating a copy). The patch also takes the fast-path when formatting integers with str%args when the argument is not an int, but an object with __int__ method.
History
Date User Action Args
2012-08-09 20:01:47vstinnersetrecipients: + vstinner, pitrou
2012-08-09 20:01:46vstinnersetmessageid: <1344542506.78.0.404794794491.issue15609@psf.upfronthosting.co.za>
2012-08-09 20:01:46vstinnerlinkissue15609 messages
2012-08-09 20:01:45vstinnercreate