Access input line on NameError?

gb at cs.unc.edu gb at cs.unc.edu
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.

Thanks
gb



More information about the Python-list mailing list