[Python-Dev] with_traceback

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 1 09:32:19 CET 2007


Michael Foord wrote:
> With the 
> proposed changes, modules that do this would *continue* to work, surely 
> ?

Probably, but it might mean they were no longer thread
safe. An exception caught and raised in one thread would
be vulnerable to having its traceback clobbered by
another thread raising the same instance.

There's also the possibility of a traceback unexpectedly
kept alive causing GC problems -- cycles, files not
closed when you expect, etc.

--
Greg


More information about the Python-Dev mailing list