[Python-Dev] with_traceback

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 3 01:32:56 CET 2007


Michael Foord wrote:
> Greg Ewing wrote:
> 
> > An exception caught and raised in one thread would
> > be vulnerable to having its traceback clobbered by
> > another thread raising the same instance.
>
> Right - but that would still be *no worse* than the current situation
> where that information isn't available on the instance.

Um -- yes, it would, because currently you don't *expect*
the traceback to be available from the exception. If
that became the standard way to handle tracebacks, then
you would expect it to work reliably.

--
Greg


More information about the Python-Dev mailing list