diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-06-07 17:03:46 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-06-07 17:03:46 (GMT) |
commit | 3b336c7cedaaa596a07d97ae1eac8cd77b0f6b26 (patch) | |
tree | 5d699515fbd214817e52252574ee73220d66b4f5 /Doc/whatsnew | |
parent | 1271f003a69f94d7bd5c7ed8a51c5021a2e1a6f8 (diff) | |
download | cpython-3b336c7cedaaa596a07d97ae1eac8cd77b0f6b26.zip cpython-3b336c7cedaaa596a07d97ae1eac8cd77b0f6b26.tar.gz cpython-3b336c7cedaaa596a07d97ae1eac8cd77b0f6b26.tar.bz2 |
Add an item; also, escape %
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index c777cd4..4015d98 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -1186,6 +1186,11 @@ strings into an internal representation and caches this representation, yielding a 20\% speedup. (Contributed by Bob Ippolito at the NeedForSpeed sprint.) +\item The \module{re} module got a 1 or 2\% speedup by switching to +Python's allocator functions instead of the system's +\cfunction{malloc()} and \cfunction{free()}. +(Contributed by Jack Diederich at the NeedForSpeed sprint.) + \item The code generator's peephole optimizer now performs simple constant folding in expressions. If you write something like \code{a = 2+3}, the code generator will do the arithmetic and produce @@ -1927,7 +1932,7 @@ Instead, use the DB-API's parameter substitution. Put \samp{?} as a placeholder wherever you want to use a value, and then provide a tuple of values as the second argument to the cursor's \method{execute()} method. (Other database modules may use a different placeholder, -such as \samp{%s} or \samp{:1}.) For example: +such as \samp{\%s} or \samp{:1}.) For example: \begin{verbatim} # Never do this -- insecure! |