[issue43620] os.path.join does not use os.sep as documentation claims

Eryk Sun report at bugs.python.org
Thu Mar 25 11:07:11 EDT 2021


Eryk Sun <eryksun at gmail.com> added the comment:

> certainly you can see this is a doc bug, since the doc clearly 
> states that os.sep is utilized to join the elements of the path,
> when it clearly isn't; right?

os.path is ntpath in Windows, which uses backslash as the path separator, which is the same as os.sep in Windows. os.path is posixpath in POSIX, which uses slash as the path separator, which is the same as os.sep in POSIX.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43620>
_______________________________________


More information about the Python-bugs-list mailing list