Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clarify "absolute"
  • Loading branch information
hauntsaninja committed Jan 6, 2023
commit 5a3589b8fa54d4c8dae8b2596c055010f5c53b26
5 changes: 3 additions & 2 deletions Doc/library/os.path.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ the :mod:`glob` module.)
concatenation of *path* and any members of *\*paths* with exactly one
Comment thread
hauntsaninja marked this conversation as resolved.
Outdated
directory separator following each non-empty part except the last, meaning
that the result will only end in a separator if the last part is empty. If
Comment thread
hauntsaninja marked this conversation as resolved.
Outdated
a segment is an absolute path, all previous segments are ignored
and joining continues from the absolute path segment.
a segment is an absolute path (which on Windows requires both a drive and a
root), then all previous segments are ignored and joining continues from the
absolute path segment.

On Windows, the drive is not reset when a rooted path segment (e.g.,
``r'\foo'``) is encountered. If a segment is from a different drive or is an
Comment thread
hauntsaninja marked this conversation as resolved.
Outdated
Expand Down