compile() builtin error catching..
Thu, 16 Sep 93 12:13:13 PDT
I have a program that loads text from an external file and passes
it to the builtin Python function compile(). I can put a try:except:
statement around it to catch when there ar sntax errors, etc.. BUT
I cannot get the LINE number that the error occured on.
If I try to take a look at sys.exc_traceback.tb_lineno, it is garbage...
How can I get the line number from INSIDE a python program???
I could and MIGHT have to write this part in C, but would prefer NOT to
if at all possible..
Lance Ellinghouse firstname.lastname@example.org
1231 bit key fingerprint = 56 DA 31 0C 17 51 36 6A 4E D4 E0 11 D9 B8 06 0A
1024 bit key fingerprint = 66 2C 75 F2 E9 1C 32 84 3A E3 B0 5E 48 01 4C 37
You can receive my Public Key by `finger email@example.com`