-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
IndentationError in new repl #133541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
3.14
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Comments
Win 10: with a space between the cursor and 'm', so 3 spaces to left of cursor |
Full traceback:
|
I can reproduce but with a varied traceback.
|
cc @ambv based on the stacktrace it looks like it's coming from the new syntax highlighting code. |
Oof. OK, yes, indeed. Sorry about that omission. |
ambv
added a commit
to ambv/cpython
that referenced
this issue
May 7, 2025
pablogsal
pushed a commit
that referenced
this issue
May 8, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 8, 2025
…nput (pythonGH-133606) (cherry picked from commit b2fabce) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
pablogsal
pushed a commit
that referenced
this issue
May 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.14
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Python version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899.
To reproduce type the following class definition in the REPL:
Then set the cursor to the space before
m
and press backspace to correct the incorrect newline.Behaviour: the REPL exits with an
IndentationError
.Typing backspace works correctly when the cursor is on
m
.The exit/crash does not happen in 3.14a7.
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: