GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-145410: Add _sysconfig.get_platform() function by vstinner · Pull Request #146145 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Mar 18, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

On Windows, sysconfig.get_platform() now gets the platform from the _sysconfig module instead of parsing sys.version string.

  • Issue: sysconfig.get_platform() could return wrong value because sys.version is truncated #145410

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vstinner
pythongh-145410: Add _sysconfig.get_platform() function
81ce67f
On Windows, sysconfig.get_platform() now gets the platform from the
_sysconfig module instead of parsing sys.version string.
@vstinner
vstinner requested a review from FFY00 as a code owner March 18, 2026 22:55
@bedevere-app bedevere-app Bot mentioned this pull request Mar 18, 2026
sysconfig.get_platform() could return wrong value because sys.version is truncated #145410
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Mar 18, 2026
zooba
zooba approved these changes Mar 18, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Mar 18, 2026
@vstinner
vstinner merged commit b9d4318 into python:main Mar 18, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@vstinner
vstinner deleted the sysconfig_get_platform branch March 18, 2026 23:28
@bedevere-app bedevere-app Bot removed the awaiting merge label Mar 18, 2026
@vstinner

vstinner commented Mar 18, 2026

Copy link
Copy Markdown
Member Author

PR merged. Thanks for the review @zooba.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
83cf2ee
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
baf23c5
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
85a4c51
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
fb08520
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
4e48213
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 18, 2026
@vstinner
pythongh-146145: Use _sysconfig.get_platform() in the platform module
a43ceb0
@vstinner

vstinner commented Mar 18, 2026

Copy link
Copy Markdown
Member Author

Follow-up: PR gh-146148 uses _sysconfig.get_platform() in the platform module.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 19, 2026
extend sys module on windows #102536
Open
sysconfig should not rely on sys.version #81773
Closed
@pablogsal pablogsal mentioned this pull request Apr 4, 2026
gh-130273: Fix traceback color output with unicode characters #142529
Merged
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@vstinner @ljfp
pythongh-145410: Add _sysconfig.get_platform() function (python#146145)
4f86365
On Windows, sysconfig.get_platform() now gets the platform from the
_sysconfig module instead of parsing sys.version string.
This was referenced Jul 19, 2026
ctypes.util.find_msvcrt() returns "msvcrt.dll" on clang-cl Windows builds, breaking ctypes.get_errno() #154199
Closed
test_importlib.test_windows: vendored get_platform() misdetects clang-cl builds as win32, failing test_tagged_suffix #154200
Closed
@chris-eibl chris-eibl mentioned this pull request Sep 12, 2026
gh-157368: Fix clang-cl version in sys.version on Windows #157369
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@zooba zooba zooba approved these changes
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@vstinner @zooba
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.