This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients docs@python, eryksun, jpsutton
Date 2021-03-25.00:32:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616632335.54.0.552306125815.issue43620@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-03-25 00:32:15eryksunsetrecipients: + eryksun, docs@python, jpsutton
2021-03-25 00:32:15eryksunsetmessageid: <1616632335.54.0.552306125815.issue43620@roundup.psfhosted.org>
2021-03-25 00:32:15eryksunlinkissue43620 messages
2021-03-25 00:32:15eryksuncreate