Kaydet (Commit) 1fec57f4 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Note change in behavior from 1.5.2. The new argument to NameError is

an error message and not just the missing name.

Closes SF Bug 599869.
üst a2b4448d
...@@ -206,8 +206,8 @@ Raised when an \keyword{assert} statement fails. ...@@ -206,8 +206,8 @@ Raised when an \keyword{assert} statement fails.
\begin{excdesc}{NameError} \begin{excdesc}{NameError}
Raised when a local or global name is not found. This applies only Raised when a local or global name is not found. This applies only
to unqualified names. The associated value is the name that could to unqualified names. The associated value is an error message that
not be found. includes the name that could not be found.
\end{excdesc} \end{excdesc}
\begin{excdesc}{NotImplementedError} \begin{excdesc}{NotImplementedError}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment