]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#18389: Clarify that relpath does not access the file system.
authorR David Murray <rdmurray@bitdance.com>
Fri, 12 Jul 2013 21:43:11 +0000 (17:43 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 12 Jul 2013 21:43:11 +0000 (17:43 -0400)
Initial patch by Madison May.

Doc/library/os.path.rst

index dd3ac853411739feed5d33ecbfc2fdf661dd1903..1d46bf2b72dd9e694aaf76d6dd74764e88227e6c 100644 (file)
@@ -234,8 +234,10 @@ the :mod:`glob` module.)
 
 .. function:: relpath(path, start=None)
 
-   Return a relative filepath to *path* either from the current directory or from
-   an optional *start* point.
+   Return a relative filepath to *path* either from the current directory or
+   from an optional *start* directory.  This is a path computation:  the
+   filesystem is not accessed to confirm the existence or nature of *path* or
+   *start*.
 
    *start* defaults to :attr:`os.curdir`.