Access input line on NameError?

gb at gb at
Fri Nov 30 03:13:50 CET 2001

Can I get access to the offending text line of the input when I take a
NameError exception? I see that it is available on a SyntaxError but I
can't seem to find it on a NameError.


More information about the Python-list mailing list