diff options
author | Collin Winter <collinw@gmail.com> | 2007-03-16 22:16:08 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-03-16 22:16:08 (GMT) |
commit | 6f187743ffbce522c9d686ae5393272c1eb85dcc (patch) | |
tree | 49954823525566e80d435c3f9acff30a1a54e58d /Doc/lib | |
parent | 6de691d78ce696d897e4c58c3fc8fd7d3f6f1359 (diff) | |
download | cpython-6f187743ffbce522c9d686ae5393272c1eb85dcc.zip cpython-6f187743ffbce522c9d686ae5393272c1eb85dcc.tar.gz cpython-6f187743ffbce522c9d686ae5393272c1eb85dcc.tar.bz2 |
Patch 1339796: add a relpath() function to os.path.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libposixpath.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex index 3687c6d..851e459 100644 --- a/Doc/lib/libposixpath.tex +++ b/Doc/lib/libposixpath.tex @@ -189,6 +189,15 @@ operating system). \versionadded{2.2} \end{funcdesc} +\begin{funcdesc}{relpath}{path\optional{, start}} +Return a relative filepath to \var{path} either from the current +directory or from an optional \var{start} point. + +\var{start} defaults to \member{os.curdir}. +Availability: Windows, \UNIX. +\versionadded{2.6} +\end{funcdesc} + \begin{funcdesc}{samefile}{path1, path2} Return \code{True} if both pathname arguments refer to the same file or directory (as indicated by device number and i-node number). |