[issue25782] CPython hangs on error __context__ set to the error itself

Serhiy Storchaka report at bugs.python.org
Wed Dec 2 15:06:57 EST 2015


Serhiy Storchaka added the comment:

Yet one option is the emersion of the exception. Affected exception is removed from the chain and added at it head.

If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A we will get a chain C -> A -> B -> D -> E. No exception is lost.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25782>
_______________________________________


More information about the Python-bugs-list mailing list