]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145410: Add _sysconfig.get_platform() function (#146145)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Mar 2026 23:28:21 +0000 (00:28 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 23:28:21 +0000 (00:28 +0100)
commitb9d43188e93967c3695e60f5ea6d8c2ca8a62c5d
treed65aa2696cce5e8d0e5dfab5e879af7fac02c2ec
parent656abe3c9a228d20b2455f216a5a94b1a752495f
gh-145410: Add _sysconfig.get_platform() function (#146145)

On Windows, sysconfig.get_platform() now gets the platform from the
_sysconfig module instead of parsing sys.version string.
Lib/sysconfig/__init__.py
Lib/test/test_sysconfig.py
Misc/NEWS.d/next/Library/2026-03-18-23-54-36.gh-issue-145410.NvLWj5.rst [new file with mode: 0644]
Modules/_sysconfig.c
Modules/clinic/_sysconfig.c.h