Skip to content
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

Closed
techtonik mannequin opened this issue Nov 7, 2012 · 6 comments
Closed

regression: os.path.split('//hostname/foo/bar.txt') #60628

techtonik mannequin opened this issue Nov 7, 2012 · 6 comments
Labels
stdlib Python modules in the Lib dir

Comments

@techtonik
Copy link
Mannequin

techtonik mannequin commented Nov 7, 2012

BPO 16424
Nosy @serhiy-storchaka

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:

assignee = None
closed_at = <Date 2012-11-09.21:38:40.698>
created_at = <Date 2012-11-07.06:15:33.224>
labels = ['invalid', 'library']
title = "regression: os.path.split('//hostname/foo/bar.txt')"
updated_at = <Date 2012-11-09.21:38:40.697>
user = 'https://bugs.python.org/techtonik'

bugs.python.org fields:

activity = <Date 2012-11-09.21:38:40.697>
actor = 'jcea'
assignee = 'none'
closed = True
closed_date = <Date 2012-11-09.21:38:40.698>
closer = 'jcea'
components = ['Library (Lib)']
creation = <Date 2012-11-07.06:15:33.224>
creator = 'techtonik'
dependencies = []
files = []
hgrepos = []
issue_num = 16424
keywords = []
message_count = 6.0
messages = ['175044', '175046', '175060', '175061', '175062', '175076']
nosy_count = 2.0
nosy_names = ['techtonik', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue16424'
versions = ['Python 3.1', 'Python 3.2', 'Python 3.3']

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Nov 7, 2012

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

@techtonik techtonik mannequin added the stdlib Python modules in the Lib dir label Nov 7, 2012
@serhiy-storchaka
Copy link
Member

'//hostname/foo/' is an UNC path. Now splitunc() deprecated and splitdrive() works with an UNC paths.

>>> ntpath.splitdrive('//hostname/foo/')
('//hostname/foo', '/')

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Nov 7, 2012

Does that mean that Py3's split() uses splitunc() instead of splitdrive()?

@serhiy-storchaka
Copy link
Member

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Nov 7, 2012

Ok, so how to fix the regression?

@serhiy-storchaka
Copy link
Member

There is not a regression. This is a feature, not a bug.

@jcea jcea closed this as completed Nov 9, 2012
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants