[docs] [issue28412] os.path.splitdrive documentation out of date

Michael Partridge report at bugs.python.org
Mon Oct 10 18:57:46 EDT 2016


New submission from Michael Partridge:

ntpath.splitdrive was updated in patch 26ec6248ee8b. (I think this was released in 2.7.8.)

This changes the behaviour of splitdrive for UNC style paths. Previously:

>>> ntpath.splitdrive(r'\\nancy\foo\bar')
('', '\\\\nancy\\foo\\bar')                                                                                                              
>>>     

Now:
>>> ntpath.splitdrive(r'\\nancy\foo\bar')
('\\\\nancy\\foo', '\\bar')
>>> 

The documentation should be updated to say the same.

----------
assignee: docs at python
components: Documentation
messages: 278446
nosy: docs at python, snooter
priority: normal
severity: normal
status: open
title: os.path.splitdrive documentation out of date
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28412>
_______________________________________


More information about the docs mailing list