[New-bugs-announce] [issue37987] retrun collection item in for cycle with finally continue

Иван Косматых report at bugs.python.org
Fri Aug 30 06:58:46 EDT 2019


New submission from Иван Косматых <ivan.kosmatikh at gmail.com>:

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

----------
components: Interpreter Core
messages: 350867
nosy: serhiy.storchaka, Иван Косматых
priority: normal
severity: normal
status: open
title: retrun collection item in for cycle with finally continue
type: crash
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37987>
_______________________________________


More information about the New-bugs-announce mailing list