diff options
author | Raymond Hettinger <python@rcn.com> | 2004-01-05 08:15:20 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-01-05 08:15:20 (GMT) |
commit | 23a0f4ed21205a0b585ee66bd8e1405b38680319 (patch) | |
tree | f41532b190843aaae64e265f8f6115adae59a3d0 | |
parent | 97ef8de92d9d2229351e3fa8b7900b194bab1990 (diff) | |
download | cpython-23a0f4ed21205a0b585ee66bd8e1405b38680319.zip cpython-23a0f4ed21205a0b585ee66bd8e1405b38680319.tar.gz cpython-23a0f4ed21205a0b585ee66bd8e1405b38680319.tar.bz2 |
Small correction to example
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index de06e9e..5967d6d 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -273,12 +273,13 @@ yellow 5 method. Previously, the pre-sizing optimization only applied to sequence arguments. -\item The unbound methods \method{list.__getitem__()}, +\item The methods \method{list.__getitem__()}, \method{dict.__getitem__()}, and \method{dict.__contains__()} are are now implemented as \class{method_descriptor} objects rather than \class{wrapper_descriptor} objects. This form of optimized access doubles their performance and makes them more suitable for - use as arguments to functionals: \samp{map(dict.__contains__, mydict)}. + use as arguments to functionals: + \samp{map(mydict.__getitem__, keylist)}. \end{itemize} |