Skip to content

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

@DinoV

Description

@DinoV

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstopic-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