Conversation
|
@barneygale You're right that |
|
Resolving conflicts. |
0cf7578 to
f4f3805
Compare
|
The difference is that |
|
I think you mean that they are standard library calls, neither have been syscalls in a long while (at least on Linux). My motivation, however, wasn't to make people coming from a POSIX-compliant C library "feel at home", but old fogies like me who're used to the |
This adds the `follow_symlink` parameter to `pathlib.Path.exists()`, and wraps the new functionality in `pathlib.Path.lexists()`, analogous to `os.stat()` ./. `os.lstat()` and `os.path.exists()` ./. `os.path.lexists()`. GH-NNNN Signed-off-by: Nils Philippsen <nils@tiptoe.de>
f4f3805 to
d48d796
Compare
|
I'm still -1 on this, per Zen of Python's "There should be one -- and preferably only one -- obvious way to do it." I'd rather we didn't have |

This adds the
follow_symlinkparameter topathlib.Path.exists(),and wraps the new functionality in
pathlib.Path.lexists(), analogousto
os.stat()./.os.lstat()andos.path.exists()./.os.path.lexists().Signed-off-by: Nils Philippsen nils@tiptoe.de