You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-01-13.12:18:10.006>created_at=<Date2020-01-13.10:58:01.750>labels= ['invalid', 'type-bug', 'library', '3.9']
title='ntpath module must not be available on POSIX platforms'updated_at=<Date2020-01-13.20:59:14.368>user='https://github.com/opensource-assist'
According to https://docs.python.org/dev/library/undoc.html the 'ntpath' module is an "Implementation of os.path on Win32 and Win64 platforms".
Just like all other Windows-specific modules(like winreg),'ntpath' must not be available for use on a POSIX system like Linux.
I guess that 'posixpath' is also available on Windows, that if it is, it must not be available too.
No, ntpath and posixpath are cross-platform. They are tested on all platforms, and the os.path documentation lists them and notes that "you can also import and use the individual modules if you want to manipulate a path that is always in one of the different formats".
@eryksun So modify the documentation to note that they're operable on both platforms.
I've seen that ntpath worked on my Linux system, but the documentation was misleading.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: