summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-01-09 20:36:44 (GMT)
committerFred Drake <fdrake@acm.org>1998-01-09 20:36:44 (GMT)
commit6b3ed7f58130a8645f4802ecd2c540f361d9be85 (patch)
treecdb7b6341ec9c71a061b5e94c1e79a12d71515c0 /Doc/lib
parent0bf684545009f63efdb660d8bc7e52108ddc2795 (diff)
downloadcpython-6b3ed7f58130a8645f4802ecd2c540f361d9be85.zip
cpython-6b3ed7f58130a8645f4802ecd2c540f361d9be85.tar.gz
cpython-6b3ed7f58130a8645f4802ecd2c540f361d9be85.tar.bz2
Markup consistency in the mapping object interface description.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libtypes.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libtypes.tex b/Doc/lib/libtypes.tex
index 08c9419..8dba8a5 100644
--- a/Doc/lib/libtypes.tex
+++ b/Doc/lib/libtypes.tex
@@ -526,9 +526,9 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object):
\lineiii{\var{a}.has_key(\var{k})}{\code{1} if \var{a} has a key \var{k}, else \code{0}}{}
\lineiii{\var{a}.items()}{a copy of \var{a}'s list of (key, item) pairs}{(2)}
\lineiii{\var{a}.keys()}{a copy of \var{a}'s list of keys}{(2)}
- \lineiii{\var{a}.update(b)}{\code{for k, v in b.items(): a[k] = v}}{(3)}
+ \lineiii{\var{a}.update(\var{b})}{\code{for k, v in \var{b}.items(): \var{a}[k] = v}}{(3)}
\lineiii{\var{a}.values()}{a copy of \var{a}'s list of values}{(2)}
- \lineiii{\var{a}.get(k, f)}{the item of \var{a} with key \var{k}}{(4)}
+ \lineiii{\var{a}.get(\var{k}, \var{f})}{the item of \var{a} with key \var{k}}{(4)}
\end{tableiii}
\indexiii{operations on}{mapping}{types}
\indexiii{operations on}{dictionary}{type}