gh-131741: Add documentation for Windows version detection change in platform (#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.

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>
This commit is contained in:
Idan Noiman 2025-03-26 16:50:37 +02:00 committed by GitHub
parent 2d83891dfd
commit b9ca438daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -811,6 +811,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
---