Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyrepl on windows is blocking where it shouldn't #124628

Open
DinoV opened this issue Sep 26, 2024 · 0 comments
Open

Pyrepl on windows is blocking where it shouldn't #124628

DinoV opened this issue Sep 26, 2024 · 0 comments
Labels
OS-windows topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@DinoV
Copy link
Contributor

DinoV commented Sep 26, 2024

Bug report

Bug description:

ReadConsoleInput is documented as always returning at least one input. This breaks things in a couple of spots:

  • searching inputs and hitting ctrl-c. This blocks reading, a 2nd ctrl-c is required, and then the interpreter crashes.
  • Background exceptions with a partial input. This should display the exception and do a keyboard interrupt, but it only happens on the next keypress.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@DinoV DinoV added the type-bug An unexpected behavior, bug, or error label Sep 26, 2024
@Eclips4 Eclips4 added OS-windows topic-repl Related to the interactive shell labels Sep 26, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 26, 2024
…g reads (pythonGH-124629)

(cherry picked from commit 83e5dc0)

Co-authored-by: Dino Viehland <[email protected]>
Yhg1s pushed a commit that referenced this issue Sep 27, 2024
…ng reads (GH-124629) (#124638)

gh-124628: Pyrepl inputs on Windows shouldn't always be blocking reads (GH-124629)
(cherry picked from commit 83e5dc0)

Co-authored-by: Dino Viehland <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants