From 44c3953d74edc766dbaa304c5d97ca8f5a4b6c77 Mon Sep 17 00:00:00 2001 From: Idan Noiman Date: Tue, 25 Mar 2025 23:39:22 +0200 Subject: [PATCH 1/2] gh-131741: Add doc for version detection change in platform Document the behavior change between 3.11 & 3.12, where `platform` now correctly detects Windows 11 and Windows Server releases past Windows Server 2012. --- Doc/whatsnew/3.12.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 084512e8e94759..abfddac41f9a99 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -811,6 +811,17 @@ pathlib :meth:`pathlib.Path.rglob` and :meth:`pathlib.PurePath.match` for matching the path's case sensitivity, allowing for more precise control over the matching process. +platform +-------- + +* Add support for detecting Windows 11 and Windows Server releases past 2012. + Prior, lookups on Windows Server platforms newer than Windows Server 2012 + and on Windows 11 would return `Windows-10`. + (Contributed by Steve Dower in :gh:`89545`.) + +* Add support for detecting Windows Server 2025. + (Contributed by Wulian233 in :gh:`127732`.) + pdb --- From 85f514cf9a25e14130e1e842172ce51b63e7e09f Mon Sep 17 00:00:00 2001 From: Idan Noiman Date: Wed, 26 Mar 2025 16:25:48 +0200 Subject: [PATCH 2/2] gh-131741: Fix code review notes * Removed bullet point present in full changelog * Changed backticks to RST format (` -> ``) * Grammar changes ("Prior" -> "Previously") --- Doc/whatsnew/3.12.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index abfddac41f9a99..afbc7a1c16f2de 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -815,13 +815,10 @@ platform -------- * Add support for detecting Windows 11 and Windows Server releases past 2012. - Prior, lookups on Windows Server platforms newer than Windows Server 2012 - and on Windows 11 would return `Windows-10`. + Previously, lookups on Windows Server platforms newer than Windows Server 2012 + and on Windows 11 would return ``Windows-10``. (Contributed by Steve Dower in :gh:`89545`.) -* Add support for detecting Windows Server 2025. - (Contributed by Wulian233 in :gh:`127732`.) - pdb ---