Is this possible in Python?

Paul Rubin http
Mon Mar 13 22:20:13 CET 2006

alainpoint at writes:
> I don't want a better way, i just want a solution to the problem as
> described!

I once did something like:

     raise ValueError
  except ValueError, e:

then get the traceback object out of e, and snarf the relevant source
line as mentioned before.

More information about the Python-list mailing list