]> granicus.if.org Git - python/commitdiff
Since LookupError can be raised by sys.setdefaultencoding(), we should not
authorFred Drake <fdrake@acm.org>
Wed, 25 Oct 2000 21:05:29 +0000 (21:05 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 25 Oct 2000 21:05:29 +0000 (21:05 +0000)
document it as only being a base class, not matter how unlikely this is
to affect normal users.

Doc/lib/libexcs.tex

index 40cc6fd11f5145f26c80733dcf5101f9c5242ea5..0324a8af433b5ba2bfa4d8356fb5517e812c525e 100644 (file)
@@ -80,7 +80,8 @@ various arithmetic errors: \exception{OverflowError},
 \begin{excdesc}{LookupError}
 The base class for the exceptions that are raised when a key or
 index used on a mapping or sequence is invalid: \exception{IndexError},
-\exception{KeyError}.
+\exception{KeyError}.  This can be raised directly by
+\function{sys.setdefaultencoding()}.
 \end{excdesc}
 
 \begin{excdesc}{EnvironmentError}