Kaydet (Commit) 23a0f4ed authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Small correction to example

üst 97ef8de9
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment