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
man page says -I implies -S. code says -s. #68265
Comments
The man page for Python (3.4 and 3.5) says: -I Run Python in isolated mode. This also implies -E and -S. In But the code says: -I : isolate Python from the user's environment (implies -E and -s) and the code to handle -I does:
where Py_NoUserSiteDirectory is the variable corresponding to the -s flag The rest of this is written under the assumption that -I should imply -S Background: depending on which packages are installed on different Solaris Tweaking the code and man page so -I does imply -S was trivial. But three
|
Adding Christian Heimes to the nosy list; as the author of the fix for |
The isolated mode implies -E (ignore env vars) and -s (don't add user site directory). The code and tests are correct, just the man page is wrong. The site module is still loaded in -I mode as it doesn't impose any security implications. I'd looks like I made a typo in dd0d751cc7f1 and used upper case instead of lower case for python.man. |
Thank you very much for clarifying that. I have updated the bug Title |
New changeset d774401879d8 by Ned Deily in branch '3.4': New changeset 493b3310d5d0 by Ned Deily in branch 'default': |
Thanks for the report, John! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: