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

anatoly techtonik techtonik at gmail.com
Wed Nov 7 12:02:08 CET 2012


Forwarding to python-dev.

Does everybody agree that the following behavior is not a regression, but a
feature of os.path.split()?

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', '')


http://bugs.python.org/issue16424
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20121107/d9794b0b/attachment.html>


More information about the Python-Dev mailing list