Raymond Hettinger <[email protected]> added the comment:
Even weirder, the old behavior returns if "except:" is replaced by "except
BaseException as e:".
============================
def foo():
try:
yield
except BaseException as e:
yield from foo()
for m in foo():
print(i)
----------
nosy: +Mark.Shannon, rhettinger
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42762>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com