Skip to content

Comments

py: implement input#252

Open
aisk wants to merge 7 commits intogo-python:mainfrom
aisk:input
Open

py: implement input#252
aisk wants to merge 7 commits intogo-python:mainfrom
aisk:input

Conversation

@aisk
Copy link
Contributor

@aisk aisk commented Feb 7, 2026

Since liner takes over control of stdin in the REPL, an InputHook is added and registered in REPL mode, which will use liner to get the input instead of reading from stdin directly.

Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR.

I have a couple of comments, see below.
also, it'd be great to add tests for this.

thanks again.

Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a couple of nitpicks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants