johnslavik · GitHub

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

Read the original on github.com ↗