Skip to content

The asyncio REPL reaches for PYTHONSTARTUP in isolated mode #140648

Closed

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

Activity

  1. johnslavik commented on Oct 27, 2025

    @johnslavik
    MemberAuthor

    @ZeroIntensity (mentorship) labels: stdlib, topic-asyncio, topic-repl, 3.13, 3.14.

  2. ZeroIntensity commented on Oct 27, 2025

    @ZeroIntensity
    Member

    Do you want the 3.15 label too?

  3. johnslavik commented on Oct 27, 2025

    @johnslavik
    MemberAuthor

    Do you want the 3.15 label too?

    Yes! Missed that. Thanks :-)

  4. added a commit that references this issue on Jan 3, 2026
  5. added 2 commits that reference this issue on Jan 3, 2026
  6. added 2 commits that reference this issue on Jan 3, 2026
  7. moved this from Todo to Done in asyncioon Jan 3, 2026
  8. added a commit that references this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixes3.15bugs 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