This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: NameError value is not the name error
Type: Stage:
Components: Documentation Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: nowonder, pedro_rodriguez, rhettinger
Priority: normal Keywords:

Created on 2002-08-25 10:04 by pedro_rodriguez, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg12165 - (view) Author: Pedro Rodriguez (pedro_rodriguez) Date: 2002-08-25 10:04
NameError value was the faulty name in 1.5.2, but it
isn't in 2.2.

try:
    a
except NameError, e:
    print e.args

Reports in 1.5.2 :
('a',)

Reports in 2.2 :
("name 'a' is not defined",)
msg12166 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-08-25 16:39
Logged In: YES 
user_id=80475

Where does this apper in the docs?
msg12167 - (view) Author: Pedro Rodriguez (pedro_rodriguez) Date: 2002-08-26 07:38
Logged In: YES 
user_id=426450

http://www.python.org/doc/current/lib/module-exceptions.html
-
exception 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.
-
msg12168 - (view) Author: Peter Schneider-Kamp (nowonder) * (Python triager) Date: 2002-08-27 15:05
Logged In: YES 
user_id=14463

What do you mean? Pedro gave a link. Just search for
'NameError' on that page.

If you are referring to the cvs docs, the appropriate file is:
dist/src/Doc/lib/libexcs.tex, line 209f

Pedro is right in that current practice is incosistent with old
practice AND documentation.
msg12169 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-08-27 23:55
Logged In: YES 
user_id=80475

Pedro, thanks for the submitting the bug report.

Updated documentation.
See Docs/lib/libexecs.tex 1.48 and 1.43.6.1

Closing bug.

History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37087
2002-08-25 10:04:57pedro_rodriguezcreate