-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Confusing wording in os.path.lexists
docs
#117360
Comments
|
But what is the purpose of a function that only returns True? |
|
If the doc matches the behavior, there is no bug. If the behavior is intended, and useful, we are unlikely to change it. Feature changes usually need be be discussed on discuss/ideas. |
As already explained, there's no bug in the docs or implementation here. However, we might be able to clarify the docs a bit: I think the confusion here came from the fact that the broken symlink case is called out explicitly in a separate sentence: cpython/Doc/library/os.path.rst Lines 148 to 149 in 01bd74e
This reads a bit clearer to me:
|
os.path.lexists
docs
Co-authored-by: Zachary Ware <[email protected]>
…117679) (cherry picked from commit 73906d5) Co-authored-by: Nice Zombies <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Resolved by: |
… (#117701) (cherry picked from commit 73906d5) Co-authored-by: Nice Zombies <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
…7679) Co-authored-by: Zachary Ware <[email protected]>
os.path.lexists(path) https://docs.python.org/3/library/os.path.html#os.path.lexists
Should read False
Linked PRs
The text was updated successfully, but these errors were encountered: