sys.addaudithook(None)
breaks the REPL
#125852
Labels
type-bug
An unexpected behavior, bug, or error
sys.addaudithook(None)
breaks the REPL
#125852
Bug report
Bug description:
Running the code below exits the interpreter if using PyREPL, results in an infinite loop in basic REPL and breaks IDLE. Nevertheless, it might be a case of "just don't do that then".
It might be necessary to hit
Enter
again to see this behavior.In basic REPL, the loop prints (and doesn't seem to be interruptible with
Ctrl+C
):In Windows with PyREPL, the error is (and then the interpreter exits):
In Linux with PyREPL the error is (and then the interpreter exits):
It also breaks IDLE:
CPython versions tested on:
3.10, 3.12, 3.13, 3.14, CPython main branch
Operating systems tested on:
Linux, Windows
The text was updated successfully, but these errors were encountered: