Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python -I's help message missing imply -P #131818

Closed
bebound opened this issue Mar 28, 2025 · 0 comments
Closed

python -I's help message missing imply -P #131818

bebound opened this issue Mar 28, 2025 · 0 comments
Labels
type-feature A feature request or enhancement

Comments

@bebound
Copy link
Contributor

bebound commented Mar 28, 2025

Feature or enhancement

Proposal:

According to the doc,

-I Run Python in isolated mode. This also implies -E, -P and -s options.

But it's not motioned in the python --help. -P does not add unsafe path in sys.path. I think this is useful information and should be included.

Image

Related PR: #31542

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

@bebound bebound added the type-feature A feature request or enhancement label Mar 28, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 28, 2025
(cherry picked from commit 8bd88e2)

Co-authored-by: Hang <bebound@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 28, 2025
(cherry picked from commit 8bd88e2)

Co-authored-by: Hang <bebound@gmail.com>
vstinner pushed a commit that referenced this issue Mar 28, 2025
…131823)

gh-131818: Add imply `-P` in `-I`'s help message (GH-131819)
(cherry picked from commit 8bd88e2)

Co-authored-by: Hang <bebound@gmail.com>
vstinner pushed a commit that referenced this issue Mar 28, 2025
…131822)

gh-131818: Add imply `-P` in `-I`'s help message (GH-131819)
(cherry picked from commit 8bd88e2)

Co-authored-by: Hang <bebound@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants