New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression: os.path.split('//hostname/foo/bar.txt') #60628
Labels
stdlib
Python modules in the Lib dir
Comments
Windows. Python 3:
>>> import os.path as osp
>>> osp.split('//hostname/foo/')
('//hostname/foo/', '')
Python 2:
>>> osp.split('//hostname/foo/')
('//hostname/foo', '')
But Python 3 again:
>>> osp.split('//hostname/foo/bar/')
('//hostname/foo/bar', '') |
'//hostname/foo/' is an UNC path. Now splitunc() deprecated and splitdrive() works with an UNC paths. >>> ntpath.splitdrive('//hostname/foo/')
('//hostname/foo', '/') |
Does that mean that Py3's split() uses splitunc() instead of splitdrive()? |
Ok, so how to fix the regression? |
There is not a regression. This is a feature, not a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: