In the new REPL, multiline input execution should fail fast #128231
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
To reproduce, simply paste this to the new REPL:
Make sure what you are seeing is:
Once hit enter, the new REPL executes both statements
raise Exception
andprint("But I'm powerful enough to bypass it")
from the same, multi-line input block, despite the failure of the first one:This can get especially confusing if a statement defines a variable. Like
causing
I'd expect different behavior: since those two statements belong to the same input, it is more logical for them to behave like a suite, where the consecutive execution of a statement depends on the completion of the one before it.
CPython versions tested on:
3.13, 3.14
Operating systems tested on:
Linux, macOS, Windows
The text was updated successfully, but these errors were encountered: