mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
1dba66cb72
commit
53143bec9b
|
@ -80,7 +80,8 @@ various arithmetic errors: \exception{OverflowError},
|
||||||
\begin{excdesc}{LookupError}
|
\begin{excdesc}{LookupError}
|
||||||
The base class for the exceptions that are raised when a key or
|
The base class for the exceptions that are raised when a key or
|
||||||
index used on a mapping or sequence is invalid: \exception{IndexError},
|
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}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{EnvironmentError}
|
\begin{excdesc}{EnvironmentError}
|
||||||
|
|
Loading…
Reference in New Issue