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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 25 Aug 2002 09:39:21 -0700


Bugs item #599869, was opened at 2002-08-25 05: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: Raymond Hettinger (rhettinger)
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",)


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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-08-25 11:39

Message:
Logged In: YES 
user_id=80475

Where does this apper in the docs?

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

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