From 4f0102f189374368c848df0904903629edc33956 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 12 Jul 2013 18:21:41 -0400 Subject: #18389: Clarify that relpath does not access the file system. Initial patch by Madison May. --- Doc/library/os.path.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 5e245d0..c84aaf2 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -236,8 +236,10 @@ the :mod:`glob` module.) .. function:: relpath(path[, start]) - 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`. -- cgit v0.12