Skip to content

gh-159323: PyREPL on Windows should exit when STDIN is NUL - #159368

Open
edvilme wants to merge 3 commits into
python:mainfrom
edvilme:pyrepl-windows-null
Open

edvilme wants to merge 3 commits into
python:mainfrom
edvilme:pyrepl-windows-null

Conversation

@edvilme

@edvilme edvilme commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

On Windows, when stdin is NUL, starting the REPL results on an exception loop because it is not caught by os.isatty

On Windows, when stdin is `NUL`, starting the REPL results on an
exception loop because it is not caught by `os.isatty`
Comment thread Lib/_pyrepl/readline.py Outdated
@edvilme
edvilme marked this pull request as ready for review October 13, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant