bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path by barneygale · Pull Request #25264 · python/cpython
barneygale
changed the title
WIP: bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path
bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path
…s in a path Removes a pathlib-specific implementation of `realpath()` that's mostly copied from `ntpath` and `posixpath`.
kfollstad added a commit to kfollstad/cpython that referenced this pull request
Bug was fixed by pythonGH-25264 which, for other reasons, moved to a system independent resolve. Adds tests for verifying resolve() on cases other than for symlinks. New cases include relative and absolute paths with and without dotted (./..) paths. Also renames test helper function to avoid name overloading and adds new REL_PATH test constant.
This was referenced
This was referenced
ambv pushed a commit to ambv/cpython that referenced this pull request
… a path (pythonGH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.
ambv pushed a commit to ambv/cpython that referenced this pull request
… a path (pythonGH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.
ambv pushed a commit to ambv/cpython that referenced this pull request
… a path (pythonGH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation. (cherry-picked from commit baecfbd)
ambv pushed a commit to ambv/cpython that referenced this pull request
…nks in a path (pythonGH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation. (cherry-picked from commit baecfbd)
ambv added a commit that referenced this pull request