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. added
    type-bug
    on Oct 27, 2025
  2. johnslavik commented on Oct 27, 2025

    @johnslavik
    MemberAuthor

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

  3. added
    stdlib
    topic-repl
    on Oct 27, 2025
  4. added
    3.13
    3.14
    on Oct 27, 2025
  5. ZeroIntensity commented on Oct 27, 2025

    @ZeroIntensity
    Member

    Do you want the 3.15 label too?

  6. johnslavik commented on Oct 27, 2025

    @johnslavik
    MemberAuthor

    Do you want the 3.15 label too?

    Yes! Missed that. Thanks :-)

  7. added
    3.15
    on Oct 27, 2025
  8. added a commit that references this issue on Jan 3, 2026
  9. added 2 commits that reference this issue on Jan 3, 2026
  10. added 2 commits that reference this issue on Jan 3, 2026
  11. moved this from Todo to Done in asyncioon Jan 3, 2026
  12. 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.133.143.15stdlibtopic-asynciotopic-repltype-bug

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions