Skip to content

Basic REPL hangs when ioctls can't be written to TTY #139027

@ambv

Description

@ambv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions