New submission from Иван Косматых <ivan.kosmat...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to