diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-31 16:34:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-31 16:34:46 (GMT) |
commit | 1e75e1776f3d2e35e02ccf7c31f6664381c84bc9 (patch) | |
tree | 992573b121b20a313c01700836cdccf220b3cbba | |
parent | b8aa2619c73d0ae0fa10b1ef5caf60c218497067 (diff) | |
download | cpython-1e75e1776f3d2e35e02ccf7c31f6664381c84bc9.zip cpython-1e75e1776f3d2e35e02ccf7c31f6664381c84bc9.tar.gz cpython-1e75e1776f3d2e35e02ccf7c31f6664381c84bc9.tar.bz2 |
Two minor nits from Gerry Weiner (no working email address) about
describing the methods of dictionaries.
-rw-r--r-- | Doc/lib/libstdtypes.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 8b6db8f..2dca492 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -569,8 +569,8 @@ arbitrary objects): \begin{tableiii}{c|l|c}{code}{Operation}{Result}{Notes} \lineiii{len(\var{a})}{the number of items in \var{a}}{} \lineiii{\var{a}[\var{k}]}{the item of \var{a} with key \var{k}}{(1)} - \lineiii{\var{a}[\var{k}] = \var{x}} - {set \code{\var{a}[\var{k}]} to \var{x}} + \lineiii{\var{a}[\var{k}] = \var{v}} + {set \code{\var{a}[\var{k}]} to \var{v}} {} \lineiii{del \var{a}[\var{k}]} {remove \code{\var{a}[\var{k}]} from \var{a}} @@ -585,7 +585,7 @@ arbitrary objects): {(2)} \lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(2)} \lineiii{\var{a}.update(\var{b})} - {\code{for k, v in \var{b}.items(): \var{a}[k] = v}} + {\code{for k in \var{b}.keys(): \var{a}[k] = \var{b}[k]}} {(3)} \lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)} \lineiii{\var{a}.get(\var{k}\optional{, \var{x}})} |