diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-07-12 21:43:53 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-07-12 21:43:53 (GMT) |
commit | d0a03ad13947368842adaf8662f269b40f20d687 (patch) | |
tree | 299746c7e409c07d05c618eda2d37c2eab82396d | |
parent | 11b38f17cacfee8b577e86f788026c9f175787a9 (diff) | |
parent | ce10fab9f6f1d42519cdeace6ba4bf9653ef2366 (diff) | |
download | cpython-d0a03ad13947368842adaf8662f269b40f20d687.zip cpython-d0a03ad13947368842adaf8662f269b40f20d687.tar.gz cpython-d0a03ad13947368842adaf8662f269b40f20d687.tar.bz2 |
#18389: Clarify that relpath does not access the file system.
Initial patch by Madison May.
-rw-r--r-- | Doc/library/os.path.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 0d2ad04..a0f006c 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -233,8 +233,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`. |