From 3f95959cd77fe7d97bcee42892f9274cb64bed54 Mon Sep 17 00:00:00 2001 From: Jared Sutton Date: Fri, 26 Mar 2021 09:56:15 -0400 Subject: [PATCH 1/2] Update os.path.rst --- Doc/library/os.path.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index a5abacf02144a7..3ec9681eef28cc 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -306,11 +306,13 @@ the :mod:`glob` module.) 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 (``os.sep``) 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 and joining continues from the absolute path - component. + 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 + and joining continues from the absolute path component. + + On Windows, the directory separator is a backslash, while on POSIX platforms + it is a forward slash. On Windows, the drive letter is not reset when an absolute path component (e.g., ``r'\foo'``) is encountered. If a component contains a drive From f841fd2e3ebebc556b4684f0983bb407c3a249de Mon Sep 17 00:00:00 2001 From: Jared Sutton Date: Fri, 26 Mar 2021 11:21:29 -0400 Subject: [PATCH 2/2] Update os.path.rst --- Doc/library/os.path.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 3ec9681eef28cc..251df4d516eb51 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -310,9 +310,6 @@ the :mod:`glob` module.) 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 and joining continues from the absolute path component. - - On Windows, the directory separator is a backslash, while on POSIX platforms - it is a forward slash. On Windows, the drive letter is not reset when an absolute path component (e.g., ``r'\foo'``) is encountered. If a component contains a drive