Eryk Sun <eryk...@gmail.com> added the comment:

The documentation of os.path.join() uses os.sep because it's written from the 
perspective of the platform's os.path, which is posixpath on a POSIX system and 
ntpath on a Windows system.

If you need to work with POSIX paths in Windows, then use posixpath. It will of 
course use '/' as the path separator, since using backslash (os.sep) in a POSIX 
path is wrong. Vice versa, if you need to work with Windows paths in POSIX, use 
ntpath.

----------
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43620>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to