-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Whitespace-only lines in PDB cause a line continuation when taken from history #125378
Comments
cc: @gaogaotiantian |
It doesn't need a repro this complicated :) The repro could be:
Basically the issue is, an empty line means "repeat" in Fix was straightforward - just let |
…or empty line command (pythonGH-125717) (cherry picked from commit 8f5e39d) Co-authored-by: Tian Gao <[email protected]>
Bug report
Bug description:
The issue happens only when pulling a line from history.
Typing 4 spaces or a Tab and hitting Enter when at the PDB prompt is interpreted the same as hitting Enter without entering whitespace.
However, grabbing a whitespace-only line from history causes a prompt/line continuatin.
To reproduce:
if True:
and hit Enterprint("True")
and hit Enter twiceAfter those 5 steps you will see:
Repeatedly hitting Enter at that point shows the same continuation prompt:
The new REPL had a somewhat similar issue (#118911 was part of it).
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: