Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a6c5c5

Browse files
committed
Fixed reference to table notes for {}.keys() and {}.items() -- these
references did not get updated when the notes were renumbered in a previous update. This fixes SF bug #432208.
1 parent 7a3bfc3 commit 4a6c5c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/lib/libstdtypes.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
970970
modifications to the dictionary, the two lists will directly
971971
correspond. 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

Comments
 (0)