[issue25782] CPython hangs on error __context__ set to the error itself
Gregory P. Smith
report at bugs.python.org
Sat Jun 11 21:16:59 EDT 2016
Gregory P. Smith added the comment:
Patch review: I see two competing solutions with differing behaviors.
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.
The 3.5 Release manager or someone familiar with the contextlib ExitStack code where this is triggered should make the decision as to the best way to fix this.
(I came to this bug via the ExitStack + subprocess issue27122 which merely has a suggested workaround patch as a band aid that might help until this is fixed)
----------
nosy: +gregory.p.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25782>
_______________________________________
More information about the Python-bugs-list
mailing list