Skip to content

The asyncio REPL reaches for PYTHONSTARTUP in isolated mode #140648

@johnslavik

Description

@johnslavik

Bug report

Bug description:

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

Current:

$ PYTHONSTARTUP=<(echo 'print("you should not be seeing this!")') ./python -Iqm asyncio
you should not be seeing this!
>>> import asyncio
>>>

Expected:

$ PYTHONSTARTUP=<(echo 'print("you should not be seeing this!")') ./python -Iqm asyncio
>>> import asyncio
>>>

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

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions