From 17cda59e468469a9a9f07c5ba147a0a381344c74 Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Tue, 1 Nov 2022 23:01:54 -0700 Subject: [PATCH] Rephrase os.path.join() --- Doc/library/os.path.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 6d52a03ba95704..4061a62b8b45b1 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -298,10 +298,10 @@ the :mod:`glob` module.) .. function:: join(path, *paths) Join one or more path components intelligently. The return value is the - concatenation of *path* and any members of *\*paths* with exactly one - 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 - a component is an absolute path, all previous components are thrown away + concatenation of *path* and any non-empty members of *\*paths* separated + by the platform's directory separator character. If the last member of *\*paths* + is empty, the result will end in the platform's directory separator. + If a component is an absolute path, all previous components are thrown away and joining continues from the absolute path component. On Windows, the drive letter is not reset when an absolute path component