From 546ee2efb3af9c2ba1f11fc41b4e809c92d06972 Mon Sep 17 00:00:00 2001 From: Notorandxor_turing <105069473+NotorandXor256@users.noreply.github.com> Date: Thu, 29 Oct 2026 23:51:35 +0530 Subject: [PATCH 1/3] Edited os.path.normcase docstring to correct Documentation for POSIX systems --- Doc/library/os.path.rst | 2 +- Lib/posixpath.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index f5ddb426c915f5a..b337ea64dacb016 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -415,7 +415,7 @@ the :mod:`glob` module.) Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. - On other operating systems, return the path unchanged. + On other operating systems (Posix), return the unchanged path .. versionchanged:: 3.6 Accepts a :term:`path-like object`. diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 8025b063397a038..b1bf3f258a77f1d 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -52,7 +52,7 @@ def _get_sep(path): # (another function should be defined to do that). def normcase(s, /): - """Normalize case of pathname. Has no effect under Posix""" + """Normalize case of pathname. Normalizes path-like Objects into Str or Bytes """ return os.fspath(s) From d84fe83bdfaabd576fafe9becfa17e4201dd1634 Mon Sep 17 00:00:00 2001 From: Notorandxor_turing <105069473+NotorandXor256@users.noreply.github.com> Date: Fri, 30 Oct 2026 00:11:51 +0530 Subject: [PATCH 2/3] Fixed normcase doc in os.path.rst --- Doc/library/os.path.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index b337ea64dacb016..4825093ccfe6d12 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -415,7 +415,9 @@ the :mod:`glob` module.) Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. - On other operating systems (Posix), return the unchanged path + On other operating systems (Posix), return String or Bytes converted from + Path-like Object + .. versionchanged:: 3.6 Accepts a :term:`path-like object`. From 7ef5ad7c5c829c5c325cda6da6b01656b00328da Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 18:57:40 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Documentation/2026-10-29-18-57-38.gh-issue-160904.nyxAv_.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2026-10-29-18-57-38.gh-issue-160904.nyxAv_.rst diff --git a/Misc/NEWS.d/next/Documentation/2026-10-29-18-57-38.gh-issue-160904.nyxAv_.rst b/Misc/NEWS.d/next/Documentation/2026-10-29-18-57-38.gh-issue-160904.nyxAv_.rst new file mode 100644 index 000000000000000..03dd3581b5fce45 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2026-10-29-18-57-38.gh-issue-160904.nyxAv_.rst @@ -0,0 +1 @@ +FiX: In Function os.path.normcase in Lib/posixpath.py docstring states path remains unchanged on POSIX Systems which is not true. Updated Docstring and documentation