summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsets.tex
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-17 16:26:31 (GMT)
committerGeorg Brandl <georg@python.org>2006-03-17 16:26:31 (GMT)
commitdb815abc70a20f81c9de1c99b9089944c802c715 (patch)
tree4fe27086334262c4177877d4401c40d16975a2e6 /Doc/lib/libsets.tex
parentda37604ee32cdefbb0184b7f34c97cf1aa1ec3cf (diff)
downloadcpython-db815abc70a20f81c9de1c99b9089944c802c715.zip
cpython-db815abc70a20f81c9de1c99b9089944c802c715.tar.gz
cpython-db815abc70a20f81c9de1c99b9089944c802c715.tar.bz2
More \exception fixes.
Diffstat (limited to 'Doc/lib/libsets.tex')
-rw-r--r--Doc/lib/libsets.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libsets.tex b/Doc/lib/libsets.tex
index dd85ec7..22bf34b 100644
--- a/Doc/lib/libsets.tex
+++ b/Doc/lib/libsets.tex
@@ -151,12 +151,13 @@ but not found in \class{ImmutableSet}:
\lineiii{\var{s}.add(\var{x})}{}
{add element \var{x} to set \var{s}}
\lineiii{\var{s}.remove(\var{x})}{}
- {remove \var{x} from set \var{s}; raises KeyError if not present}
+ {remove \var{x} from set \var{s}; raises \exception{KeyError}
+ if not present}
\lineiii{\var{s}.discard(\var{x})}{}
{removes \var{x} from set \var{s} if present}
\lineiii{\var{s}.pop()}{}
{remove and return an arbitrary element from \var{s}; raises
- KeyError if empty}
+ \exception{KeyError} if empty}
\lineiii{\var{s}.clear()}{}
{remove all elements from set \var{s}}
\end{tableiii}