Closed
Description
Bug report
This code produces two SyntaxWarning
s in the new REPL:
>>> def some():
... try:
... return 1
... finally:
... return 2
...
<python-input-14>:5: SyntaxWarning: 'return' in a 'finally' block
<python-input-14>:5: SyntaxWarning: 'return' in a 'finally' block

But, in our old REPL it produces just one:

Other SyntaxWarning
s also do not show the same behavior in the new REPL. Example:

So, looks like only PEP-765 is affected, only in the new REPL.
Linked PRs
Metadata
Metadata
Assignees
Labels
only security fixesonly security fixesbugs and security fixesbugs and security fixesbugs and security fixesbugs and security fixes(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)An unexpected behavior, bug, or errorAn unexpected behavior, bug, or error