@@ -930,11 +930,11 @@ \subsection{Mapping Types \label{typesmapping}}
930930 \lineiii {\var {a}.items()}
931931 {a copy of \var {a}'s list of (\var {key}, \var {value}) pairs}
932932 {(3)}
933- \lineiii {\var {a}.keys()}{a copy of \var {a}'s list of keys}{(2 )}
933+ \lineiii {\var {a}.keys()}{a copy of \var {a}'s list of keys}{(3 )}
934934 \lineiii {\var {a}.update(\var {b})}
935935 {\code {for k in \var {b}.keys(): \var {a}[k] = \var {b}[k]}}
936936 {(4)}
937- \lineiii {\var {a}.values()}{a copy of \var {a}'s list of values}{(2 )}
937+ \lineiii {\var {a}.values()}{a copy of \var {a}'s list of values}{(3 )}
938938 \lineiii {\var {a}.get(\var {k}\optional {, \var {x}})}
939939 {\code {\var {a}[\var {k}]} if \code {\var {k} in \var {a}},
940940 else \var {x}}
@@ -969,8 +969,8 @@ \subsection{Mapping Types \label{typesmapping}}
969969\method {keys()} and \method {values()} are called with no intervening
970970modifications to the dictionary, the two lists will directly
971971correspond. This allows the creation of \code {(\var {value},
972- \var {key})} pairs using \function {map ()}: \samp {pairs = map(None,
973- \var {a}.values(), \var {a}.keys())}.
972+ \var {key})} pairs using \function {zip ()}: \samp {pairs =
973+ zip( \var {a}.values(), \var {a}.keys())}.
974974
975975\item [(4)] \var {b} must be of the same type as \var {a}.
976976
0 commit comments