diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 13:13:31 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 13:13:31 (GMT) |
commit | ac6428756ab694531c7b419c3211e2505372f665 (patch) | |
tree | 9b3fc73a8d55404c979b151606ced7ba320b0e70 /Doc | |
parent | 654fcd531ecab07a7af971a299ee5c2b35d4fa96 (diff) | |
download | cpython-ac6428756ab694531c7b419c3211e2505372f665.zip cpython-ac6428756ab694531c7b419c3211e2505372f665.tar.gz cpython-ac6428756ab694531c7b419c3211e2505372f665.tar.bz2 |
Add string concat item
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index eb6e1a5..cb05c3a 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -815,6 +815,13 @@ the name \samp{None} is now a syntax error. the generated bytecode for list comprehensions and speeds them up by about a third. +\item String concatenations in statements of the form \code{s = s + +"abc"} and \code{s += "abc"} are now performed more efficiently in +certain circumstances. This optimization won't be present in other +Python implementations such as Jython, so you shouldn't rely on it; +using the \method{join()} method of strings is still recommended when +you want to efficiently glue a large number of strings together. + \end{itemize} The net result of the 2.4 optimizations is that Python 2.4 runs the |