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

Yury Selivanov report at bugs.python.org
Wed Dec 2 14:54:39 EST 2015


Yury Selivanov added the comment:

> Setting it to NULL is one option -- silently ignoring the assignment
(leaving whatever was there) might also be good? In 90% of the cases it
would be the same thing right? 

But leaving the old __context__ there will completely mask the bug...

And as for pure python code -- do you agree we better raise a TypeError if a cycle is about to be introduced?

----------

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


More information about the Python-bugs-list mailing list