Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> But the problem is that making a reference to the object we can prolong its 
> lifetime and even create a reference loop.

If I'm not mistaken, as long as the traceback is alive, the object is alive 
beacuse the frames will contain it. The other case is if the exception is not 
propagated, but in that case it should just die unless explicitly captured. 

The cycle only happens if the object has a reference to the exception, and that 
should not happen in the general case.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38530>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to