[issue25782] CPython hangs on error __context__ set to the error itself
Yury Selivanov
report at bugs.python.org
Mon Jun 13 15:27:21 EDT 2016
Yury Selivanov added the comment:
> Yury's raises a RuntimeError in the loop situation.
> Serhiy's simply reorders the exception context to put the referred to one at the front of the chain in the event of a loop.
Right, and I believe that my solution is more Pythonic. Reordering feels highly unintuitive to me.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25782>
_______________________________________
More information about the Python-bugs-list
mailing list