◐ Shell
clean mode source ↗

Issue 37987: retrun collection item in for cycle with finally continue

https://bugs.python.org/issue32489
This closed issue allow continue in finally clasue but now it can lead to crash in below case.

def crash():
    for i in [1, 2, 3]:
        try:
            return i
        finally:
            continue


crash()

I try use Python 3.8.0b3 (default, Aug  1 2019, 21:20:41) on ubuntu Linux 4.15.0-55-generic #60~16.04.2-Ubuntu SMP Thu Jul 4 09:03:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux