[Python-Dev] except Exception as err, tb [was: with_traceback]

2007-03-02 Thread Jim Jewett
Guido van Rossum wrote: Since this can conceivably be going on in parallel in multiple threads, we really don't ever want to be sharing whatever object contains the head of the chain of tracebacks since it mutates at every frame bubble-up. So (full) exceptions can't be unitary objects. In

Re: [Python-Dev] except Exception as err, tb [was: with_traceback]

2007-03-02 Thread Greg Ewing
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