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

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

2007-03-02 Thread Nick Maclaren
"Jim Jewett" <[EMAIL PROTECTED]> wrote: > 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

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

2007-03-02 Thread Brett Cannon
On 3/2/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > 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 b

[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. I