Raymond Hettinger <raymond.hettin...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42762>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to