Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53143be

Browse files
committed
Since LookupError can be raised by sys.setdefaultencoding(), we should not
document it as only being a base class, not matter how unlikely this is to affect normal users.
1 parent 1dba66c commit 53143be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/lib/libexcs.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ \section{Built-in Exceptions}
8080
\begin{excdesc}{LookupError}
8181
The base class for the exceptions that are raised when a key or
8282
index used on a mapping or sequence is invalid: \exception{IndexError},
83-
\exception{KeyError}.
83+
\exception{KeyError}. This can be raised directly by
84+
\function{sys.setdefaultencoding()}.
8485
\end{excdesc}
8586

8687
\begin{excdesc}{EnvironmentError}

0 commit comments

Comments
 (0)