[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-09 Thread Jesús Cea Avión
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

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread anatoly techtonik
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 ___

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread Serhiy Storchaka
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

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread anatoly techtonik
anatoly techtonik added the comment: Ok, so how to fix the regression? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16424 ___ ___

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread Serhiy Storchaka
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 ___

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-06 Thread anatoly techtonik
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', '') --

[issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-06 Thread Serhiy Storchaka
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