Changes by Jesús Cea Avión j...@jcea.es:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16424
___
___
Python-bugs-list
anatoly techtonik added the comment:
Does that mean that Py3's split() uses splitunc() instead of splitdrive()?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16424
___
Serhiy Storchaka added the comment:
No. splitunc() is deprecated.
http://docs.python.org/3/library/os.path.html#os.path.splitdrive
http://docs.python.org/3/library/os.path.html#os.path.splitunc
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik added the comment:
Ok, so how to fix the regression?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16424
___
___
Serhiy Storchaka added the comment:
There is not a regression. This is a feature, not a bug.
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16424
___
New submission from anatoly techtonik:
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', '')
--
Serhiy Storchaka added the comment:
'//hostname/foo/' is an UNC path. Now splitunc() deprecated and splitdrive()
works with an UNC paths.
ntpath.splitdrive('//hostname/foo/')
('//hostname/foo', '/')
--
nosy: +serhiy.storchaka
___
Python tracker