]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41661: Document os.path.relpath() exception on Windows with different drives...
authorZackery Spytz <zspytz@gmail.com>
Mon, 12 Apr 2021 15:39:31 +0000 (09:39 -0600)
committerGitHub <noreply@github.com>
Mon, 12 Apr 2021 15:39:31 +0000 (16:39 +0100)
Doc/library/os.path.rst

index e2f335ee8c30912a8860d24feba26f4bddc5524c..4cab3113c9e4e56023d792c4955b89bba2997651 100644 (file)
@@ -366,7 +366,8 @@ the :mod:`glob` module.)
    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*.  On Windows, :exc:`ValueError` is raised when *path* and *start*
+   are on different drives.
 
    *start* defaults to :attr:`os.curdir`.