From: Raymond Hettinger <python@rcn.com>
Date: Tue, 27 Aug 2002 23:53:23 +0000 (+0000)
Subject: Note change in behavior from 1.5.2.  The new argument to NameError is
X-Git-Tag: v2.3c1~4276
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9240be2a357260ed7910b0b666140abd4e7395e2;p=python

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.
---

diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex
index 86b5281d46..078fe3c12a 100644
--- a/Doc/lib/libexcs.tex
+++ b/Doc/lib/libexcs.tex
@@ -206,8 +206,8 @@ Raised when an \keyword{assert} statement fails.
 
 \begin{excdesc}{NameError}
   Raised when a local or global name is not found.  This applies only
-  to unqualified names.  The associated value is the name that could
-  not be found.
+  to unqualified names.  The associated value is an error message that
+  includes the name that could not be found.
 \end{excdesc}
 
 \begin{excdesc}{NotImplementedError}