[issue33426] Behavior of os.path.join does not match documentation
Michael Klatt
report at bugs.python.org
Sat May 5 19:58:10 EDT 2018
Michael Klatt <michael.d.klatt at gmail.com> added the comment:
For me, the ambiguity is due to the phrases "exactly one directory separator" and "the only way to produce a trailing separator".
I would suggest:
"The return value is the concatenation of path and any members of *paths so that there is a directory separator (os.sep) following each part except the last. An empty part is ignored unless it is the last part, in which case the result will end in a separator."
Or:
"The return value is the concatenation of path and any members of *paths such that there is guaranteed to be a directory separator (os.sep) following each part except the last. An empty part is ignored unless it is the last part, in which case the result will end in a separator."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33426>
_______________________________________
More information about the Python-bugs-list
mailing list