Bug report
This code produces two SyntaxWarnings in the new REPL:
>>>defsome():
... try:
... return1
... finally:
... return2
... <python-input-14>:5: SyntaxWarning: 'return'ina'finally'block<python-input-14>:5: SyntaxWarning: 'return'ina'finally'block

But, in our old REPL it produces just one:

Other SyntaxWarnings 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.
CC @ambv@iritkatriel
Linked PRs
Bug report
This code produces two
SyntaxWarnings in the new REPL:But, in our old REPL it produces just one:
Other
SyntaxWarnings 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.
CC @ambv@iritkatriel
Linked PRs