Title: os.path.splitdrive documentation out of date
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, iritkatriel, snooter
Priority: normal Keywords:

Created on 2016-10-10 22:57 by snooter, last changed 2021-06-18 15:26 by iritkatriel. This issue is now closed.

Messages (2)
msg278446 - (view) Author: Michael Partridge (snooter) Date: 2016-10-10 22:57
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')                                                                                                              

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

The documentation should be updated to say the same.
msg396070 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-06-18 15:26
This was updated in the Python 3 docs:

The 2.7 docs are no longer maintained.
Date User Action Args
2021-06-18 15:26:18iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg396070

resolution: out of date
stage: resolved
2016-10-10 23:25:47serhiy.storchakasetnosy: + benjamin.peterson
2016-10-10 22:57:46snootercreate