Access input line on NameError?

gb at cs.unc.edu gb at cs.unc.edu
Thu Nov 29 21:13:50 EST 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