Skip to content

Shift+enter unaware of Python 3.13 new REPL indentation feature #24317

@teuncm

Description

@teuncm

Type: Bug

Behaviour

For an intro to Python course I'm teaching, students are instructed to use shift+enter to execute code segments in the REPL. The new Python 3.13 REPL, however, automatically adds indentation on top of the indentation that is being input into the terminal by using shift+enter, and this leads to indentation errors.

Steps to reproduce:

  1. Have code segment with indentation, i.e.
for _ in range(5):
    print("hi")
    print("hello")
  1. Select segment
  2. Press shift+enter
  3. Observe indentation error

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions