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, fdrake, jpsutton
Date 2021-03-25.19:20:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616700059.46.0.215212408837.issue43620@roundup.psfhosted.org>
In-reply-to
Content
Fred, do you think this needs to be reopened to clarify that os.sep and os.altsep are not parameters for the ntpath and posixpath modules? 

I would have thought that the note at the top (path name conventions, etc) would be sufficient to let someone know that os.path is meant for working with paths on the current platform. Working with Windows paths in POSIX, and vice versa, is not simply a matter of replacing os.sep. For example:

    >>> posixpath.join('C:/spam', '/eggs')
    '/eggs'
    >>> ntpath.join('C:/spam', '/eggs')
    'C:/eggs'
History
Date User Action Args
2021-03-25 19:20:59eryksunsetrecipients: + eryksun, fdrake, docs@python, jpsutton
2021-03-25 19:20:59eryksunsetmessageid: <1616700059.46.0.215212408837.issue43620@roundup.psfhosted.org>
2021-03-25 19:20:59eryksunlinkissue43620 messages
2021-03-25 19:20:59eryksuncreate