This is related to #134466, but is regarding the basic REPL.
If you remove the ability to write ioctls to tty stdio, for example on macOS by doing
PYTHON_BASIC_REPL=1 sandbox-exec -p '(version 1) (import "system.sb") (allow process-exec) (allow file-read* (subpath "/"))' python3.13
then the REPL never shows the prompt and doesn't allow interaction, but hangs forever.
Linked PRs
This is related to #134466, but is regarding the basic REPL.
If you remove the ability to write ioctls to tty stdio, for example on macOS by doing
then the REPL never shows the prompt and doesn't allow interaction, but hangs forever.
Linked PRs