[issue42762] infinite loop resulted by "yield"
Steve Stagg
report at bugs.python.org
Tue Dec 29 15:08:52 EST 2020
Steve Stagg <stestagg at gmail.com> added the comment:
That /is/ weird. I tried a few variations, and it looks like something is being stored on the exception that is stopping the loop behaviour.
"except BaseException:" <- infinite loop
"except BaseException as e:" <- NO loop
"except BaseException as e:
del e
yield from foo()" <- infinite loop
So is this a reference being retained somewhere?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42762>
_______________________________________
More information about the Python-bugs-list
mailing list