https://github.com/python/cpython/commit/b7c53716217c738a6fdffd9cefd2df96b91d4b09
commit: b7c53716217c738a6fdffd9cefd2df96b91d4b09
branch: 3.12
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com>
date: 2025-03-26T15:00:08Z
summary:

[3.12] gh-131741: Add documentation for Windows version detection change in 
`platform` (GH-131742) (#131768)

gh-131741: Add documentation for Windows version detection change in `platform` 
(GH-131742)

Document the behavior change between 3.11 & 3.12, where ``platform`` now 
correctly detects Windows 11 and Windows Server releases past Windows Server 
2012.
(cherry picked from commit b9ca438daab6a4e2513ab38171e94c75da03d6e3)

Co-authored-by: Idan Noiman <id...@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-tur...@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hug...@users.noreply.github.com>
Co-authored-by: Wulian <1055917...@qq.com>

files:
M Doc/whatsnew/3.12.rst

diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index add932b47d7d35..25e12d65084c5e 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -818,6 +818,14 @@ 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.
+  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`.)
+
 pdb
 ---
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to