From: R David Murray Date: Fri, 12 Jul 2013 21:43:11 +0000 (-0400) Subject: #18389: Clarify that relpath does not access the file system. X-Git-Tag: v3.4.0a1~225^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce10fab9f6f1d42519cdeace6ba4bf9653ef2366;p=thirdparty%2FPython%2Fcpython.git #18389: Clarify that relpath does not access the file system. Initial patch by Madison May. --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index dd3ac8534117..1d46bf2b72dd 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -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`.