Skip to content

python: 3.14 shows a new warning in the console upon traceback #9655

@austin3dickey

Description

@austin3dickey

System details:

Positron and OS details:

Latest main

Session details:

Python 3.14.0rc3

Describe the issue:

The first time a traceback is displayed in the Console, it displays a SyntaxWarning:

Image
/Users/austin/repos/positron/extensions/positron-python/python_files/lib/ipykernel/py3/IPython/core/interactiveshell.py:3112: SyntaxWarning: 'return' in a 'finally' block
  return result

This is because https://peps.python.org/pep-0765/ is newly flagging some code in the bundled ipykernel version 6.30.1. This was fixed in newer ipykernel versions (ipython/ipython@9ecd908).

Steps to reproduce the issue:

  1. In Console: assert False

Expected or desired behavior:

No warning before the traceback

Were there any error messages in the UI, Output panel, or Developer Tools console?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions