Message167827
| 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: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 |
|