diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-07 11:04:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-07 11:04:33 (GMT) |
commit | 05c075d629fc81035b438e3b146872dc7799f260 (patch) | |
tree | 4240955ee3ea5894d0c068c9669244a7200e768c /Doc/lib/libposixpath.tex | |
parent | f08c073ded5a7cf5786f9a561e3d9529def81b6e (diff) | |
download | cpython-05c075d629fc81035b438e3b146872dc7799f260.zip cpython-05c075d629fc81035b438e3b146872dc7799f260.tar.gz cpython-05c075d629fc81035b438e3b146872dc7799f260.tar.bz2 |
Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').
Diffstat (limited to 'Doc/lib/libposixpath.tex')
-rw-r--r-- | Doc/lib/libposixpath.tex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex index 0b2da66..1dbe32f 100644 --- a/Doc/lib/libposixpath.tex +++ b/Doc/lib/libposixpath.tex @@ -234,7 +234,12 @@ empty string. On systems which do not use drive specifications, Split the pathname \var{path} into a pair \code{(\var{root}, \var{ext})} such that \code{\var{root} + \var{ext} == \var{path}}, and \var{ext} is empty or begins with a period and contains -at most one period. +at most one period. Leading periods on the basename are +ignored; \code{\var{splitext}.('.cshrc')} returns +\code{('.cshrc', '')}. + +\versionchanged[Earlier versions could produce an empty root when +the only period was the first character]{2.6} \end{funcdesc} \begin{funcdesc}{splitunc}{path} |