Message167827
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. |
|
Date |
User |
Action |
Args |
2012-08-09 20:01:47 | vstinner | set | recipients:
+ vstinner, pitrou |
2012-08-09 20:01:46 | vstinner | set | messageid: <1344542506.78.0.404794794491.issue15609@psf.upfronthosting.co.za> |
2012-08-09 20:01:46 | vstinner | link | issue15609 messages |
2012-08-09 20:01:45 | vstinner | create | |
|