Skip to content

The asyncio REPL prints copyright and version messages in quiet mode #143046

@johnslavik

Description

@johnslavik

Bug report

Bug description:

https://docs.python.org/3/using/cmdline.html#cmdoption-q

Current:

❯ ./python -qm asyncio
asyncio REPL 3.15.0a3+ (heads/update-lazy-docs:6adad022e9b, Dec 20 2025, 21:58:43) [GCC 15.2.1 20250808 (Red Hat 15.2.1-1)] on linux
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> exit
exiting asyncio REPL...

Expected:

❯ ./python -qm asyncio
>>> import asyncio
>>> exit
exiting asyncio REPL...

@ZeroIntensity stdlib topic-asyncio topic-repl 3.13 3.14 3.15

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-asynciotopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions