summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-06-12 03:31:56 (GMT)
committerFred Drake <fdrake@acm.org>2001-06-12 03:31:56 (GMT)
commit4a6c5c568facc981c8a9887419137b475931ed40 (patch)
treef839e63ab71a7dde5be0dd314469aa906fc47e3f
parent7a3bfc3a472dafc42d20845389eb79db8af0b046 (diff)
downloadcpython-4a6c5c568facc981c8a9887419137b475931ed40.zip
cpython-4a6c5c568facc981c8a9887419137b475931ed40.tar.gz
cpython-4a6c5c568facc981c8a9887419137b475931ed40.tar.bz2
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.
-rw-r--r--Doc/lib/libstdtypes.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index d55127c..bcedf71 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -930,11 +930,11 @@ arbitrary objects):
\lineiii{\var{a}.items()}
{a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
{(3)}
- \lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(2)}
+ \lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(3)}
\lineiii{\var{a}.update(\var{b})}
{\code{for k in \var{b}.keys(): \var{a}[k] = \var{b}[k]}}
{(4)}
- \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)}
+ \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(3)}
\lineiii{\var{a}.get(\var{k}\optional{, \var{x}})}
{\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
else \var{x}}
@@ -969,8 +969,8 @@ in the map.
\method{keys()} and \method{values()} are called with no intervening
modifications to the dictionary, the two lists will directly
correspond. This allows the creation of \code{(\var{value},
-\var{key})} pairs using \function{map()}: \samp{pairs = map(None,
-\var{a}.values(), \var{a}.keys())}.
+\var{key})} pairs using \function{zip()}: \samp{pairs =
+zip(\var{a}.values(), \var{a}.keys())}.
\item[(4)] \var{b} must be of the same type as \var{a}.