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
os.path.is*() may return False if path can't be accessed #59426
Comments
It seems a doc fix is the best way to go, in which case I leave this one to a native English speaker: Alternatively a new 'strict' parameter has been proposed as a workaround: |
-1 on a "strict" parameter. This is a pointless obfuscation of the API. |
The os.path.exists() docs already cover all the gory details of when it may be false due to limited permissions. The is* docs refer to this by their use of the word "existing", but that's probably too subtle. I suggest adding an extra sentence to the docs of all affected functions: "This always returns False if os.path.exists(path) returns False." |
I created a PR for this by making the word 'existing' a link to 'os.path.exists' since Nick mentioned that that word already implied the definition. |
Thanks! |
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: