◐ Shell
clean mode source ↗

[3.11] gh-77607: Improve accuracy of os.path.join docs (GH-101406) by miss-islington · Pull Request #101451 · python/cpython

This is a follow-up to pythonGH-100811.

One of the changes in that PR isn't accurate in that
`os.path.join('', '')` will not end in a separator.

This reverts that change to the previous wording that used "only", but
explicitly calls out the case where the last part ends in a separator,
which is what caused confusin in pythonGH-77607 and motivated the change
in pythonGH-100811.
(cherry picked from commit 909a674)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

This was referenced

Jan 31, 2023

hauntsaninja