Skip to content

mac: BASIC_REPL asyncio then ctrl+c will break the readline on mac #140163

@yihong0618

Description

@yihong0618

Bug report

Bug description:

it very strange test linux and mac it only happend on mac

cc @kumaraditya303

➜  cpython git:(main) PYTHON_BASIC_REPL=1 ./python.exe -m asyncio
asyncio REPL 3.15.0a1+ (heads/main:d301587369, Oct 15 2025, 22:33:48) [Clang 17.0.0 (clang-1700.0.13.5)] on darwin
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> ^C^[[A^[[A^[[A

>>> await asyncio.sleep(200)
^C^C^C^C


CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions