This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.path.split starting with two slashes
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Toilal, serhiy.storchaka
Priority: normal Keywords:

Created on 2013-12-10 12:50 by Toilal, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg205808 - (view) Author: Toilal (Toilal) Date: 2013-12-10 12:50
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import split
>>> split('//computer/share')
('//computer', 'share')


Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import split
>>> split('//computer/share')
('//computer/share', '')

Result from 2.7.6 and 3.3.3 is different. Is it a bugfix from 2.7.6 to 3.3.3, or a regression in 3.3.3 ?

Same issue occurs with backslashes.
msg205812 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-12-10 13:41
ntpath.split() in 2.7 doesn't work with UNC names. This is not a bug, this is just a lack of feature.

Python 3 is correct.
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64144
2013-12-10 14:40:06serhiy.storchakasetresolution: remind -> not a bug
stage: resolved
2013-12-10 14:28:08Toilalsetstatus: open -> closed
resolution: remind
2013-12-10 13:41:57serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg205812
2013-12-10 12:50:42Toilalcreate