]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-131741: Add documentation for Windows version detection change in `platform...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Mar 2025 15:00:08 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Mar 2025 15:00:08 +0000 (15:00 +0000)
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 <idann@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Wulian <1055917385@qq.com>
Doc/whatsnew/3.12.rst

index add932b47d7d3535bfa095393bb9d2eb6f7dff20..25e12d65084c5e2a16d09f6d4c3ac77d5c5bd96d 100644 (file)
@@ -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
 ---