New submission from Mark Shannon <[email protected]>:
This function
def f():
try:
return 2
finally:
4
would generate a try of [1, 2, 4, 2]. It should generate [1, 2, 4]
and not trace the return twice.
----------
assignee: Mark.Shannon
messages: 383044
nosy: Mark.Shannon, nedbat
priority: normal
severity: normal
stage: needs patch
status: open
title: break/continue or return in finally block occurs twice in trace.
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42645>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com