diff Doc/lib/libstdtypes.tex @ 37064:64c83e0f683e legacy-trunk

More \exception fixes.
author Georg Brandl <georg@python.org>
date Fri, 17 Mar 2006 16:26:31 +0000
parents 92ce8bb8b12a
children 69c358bf6a34
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Fri Mar 17 15:56:41 2006 +0000
+++ b/Doc/lib/libstdtypes.tex	Fri Mar 17 16:26:31 2006 +0000
@@ -1278,7 +1278,8 @@
   \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()}{}
@@ -1789,14 +1790,14 @@
 attribute will be \code{None} and if called, an explicit \code{self}
 object must be passed as the first argument.  In this case,
 \code{self} must be an instance of the unbound method's class (or a
-subclass of that class), otherwise a \code{TypeError} is raised.
+subclass of that class), otherwise a \exception{TypeError} is raised.
 
 Like function objects, methods objects support getting
 arbitrary attributes.  However, since method attributes are actually
 stored on the underlying function object (\code{meth.im_func}),
 setting method attributes on either bound or unbound methods is
 disallowed.  Attempting to set a method attribute results in a
-\code{TypeError} being raised.  In order to set a method attribute,
+\exception{TypeError} being raised.  In order to set a method attribute,
 you need to explicitly set it on the underlying function object:
 
 \begin{verbatim}