From 41d172d2f13afb4360876fae0909a0ce5865c8b7 Mon Sep 17 00:00:00 2001 From: Parman Mohammadalizadeh Date: Tue, 28 Jul 2026 11:03:30 +0200 Subject: [PATCH] gh-72542: State that os.rename() always fails across filesystems on Windows --- Doc/library/os.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index be7ea26356bebe3..94cc1bcf6b970f8 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2844,7 +2844,7 @@ features: will fail with an :exc:`OSError` subclass in a number of cases: On Windows, if *dst* exists a :exc:`FileExistsError` is always raised. - The operation may fail if *src* and *dst* are on different filesystems. Use + The operation will fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support moves to a different filesystem. On Unix, if *src* is a file and *dst* is a directory or vice-versa, an