[Python-Dev] except Exception as err, tb [was: with_traceback] (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 2 22:42:01 CET 2007


Brett Cannon wrote:

except Exception as exc with tb: ...

I was thinking of that too, plus a matching

raise Exception with tb

The only use for a 'catch' object would then be for returning from sys.exc_info(), and I'm not sure it's worth creating one just for that rather than using a 2-tuple.

-- Greg



More information about the Python-Dev mailing list