From: Raymond Hettinger Date: Mon, 5 Jan 2004 08:15:20 +0000 (+0000) Subject: Small correction to example X-Git-Tag: v2.4a1~963 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23a0f4ed21205a0b585ee66bd8e1405b38680319;p=thirdparty%2FPython%2Fcpython.git Small correction to example --- diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index de06e9eca14d..5967d6d2b2c4 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}