[issue37830] continue in finally with return in try results with segfault
ppperry
report at bugs.python.org
Mon Aug 12 21:22:41 EDT 2019
ppperry <mapreader at olum.org> added the comment:
Unfortunately, there's a similar bug for `break` in a finally inside two nested loops, so just re-banning `continue` won't fix the crash.
The code below segfaults:
```
def simple():
for number in range(2):
for number in range(2):
try:
return number
finally:
break
simple()
```
----------
nosy: +ppperry
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37830>
_______________________________________
More information about the Python-bugs-list
mailing list