[Python-bugs-list] [ python-Bugs-599869 ] NameError value is not the name error

noreply@sourceforge.net noreply@sourceforge.net
Sun, 25 Aug 2002 03:04:57 -0700


Bugs item #599869, was opened at 2002-08-25 12:04
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599869&group_id=5470

Category: Documentation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Pedro Rodriguez (pedro_rodriguez)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: NameError value is not the name error

Initial Comment:
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",)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599869&group_id=5470