[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
- Previous message: [Python-Dev] except Exception as err, tb [was: with_traceback]
- Next message: [Python-Dev] except Exception as err, tb [was: with_traceback]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] except Exception as err, tb [was: with_traceback]
- Next message: [Python-Dev] except Exception as err, tb [was: with_traceback]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]