Is this possible in Python?

Paul Rubin http
Mon Mar 13 16:20:13 EST 2006


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

I once did something like:

  try:
     raise ValueError
  except ValueError, e:
    pass

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