diff options
author | Zackery Spytz <zspytz@gmail.com> | 2021-04-12 15:39:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 15:39:31 (GMT) |
commit | 67c0b3d89c4da9750fdb43fc66d3924681b22d2e (patch) | |
tree | b6c05d1d6344ae9ffc3857fd66826f8e64d153fe /Doc/library/os.path.rst | |
parent | e126547c070fbc080562abb08e16a2c93a8a805d (diff) | |
download | cpython-67c0b3d89c4da9750fdb43fc66d3924681b22d2e.zip cpython-67c0b3d89c4da9750fdb43fc66d3924681b22d2e.tar.gz cpython-67c0b3d89c4da9750fdb43fc66d3924681b22d2e.tar.bz2 |
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r-- | Doc/library/os.path.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index e2f335e..4cab311 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -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`. |