@@ -138,7 +138,7 @@ \section{\module{os.path} ---
138138\end {funcdesc }
139139
140140\begin {funcdesc }{split}{path}
141- Split the pathname \var {path} in a pair \code {(\var {head},
141+ Split the pathname \var {path} into a pair \code {(\var {head},
142142\var {tail})}, where \var {tail} is the last pathname component and
143143\var {head} is everything leading up to that. The \var {tail} part will
144144never contain a slash; if \var {path} ends in a slash, \var {tail} will
@@ -151,8 +151,16 @@ \section{\module{os.path} ---
151151from \var {tail}).
152152\end {funcdesc }
153153
154+ \begin {funcdesc }{splitdrive}{path}
155+ Split the pathname \var {path} into a pair \code {(\var {drive},
156+ \var {tail})}, where \var {drive} is either a drive specification or the
157+ empty string. On systems which do not use drive specifications,
158+ \var {drive} will always be the empty string. In all cases,
159+ \code {\var {drive} + \var {tail}} will be the same as \var {path}.
160+ \end {funcdesc }
161+
154162\begin {funcdesc }{splitext}{path}
155- Split the pathname \var {path} in a pair \code {(\var {root}, \var {ext})}
163+ Split the pathname \var {path} into a pair \code {(\var {root}, \var {ext})}
156164such that \code {\var {root} + \var {ext} == \var {path}},
157165and \var {ext} is empty or begins with a period and contains
158166at most one period.
0 commit comments