Repository navigation
Conversation
espetro
force-pushed
the
work/712
branch
2 times, most recently
from
October 27, 2026 08:14
147006c to
c831ec7
Compare
CPython's platform.platform() is not a raw uname triple. On macOS it is "macOS-<release>-<machine>-<processor>-<bits>-Mach-O"; on glibc Linux it appends "-with-glibc<version>". ps_platform_platform formatted "%s-%s-%s", so the host batch of the call-table sweep diverged on this row. Rewrite it per platform: the macOS shape with the Mach-O ABI suffix, the glibc suffix via gnu_get_libc_version(), and the plain triple elsewhere (musl, WASI). Windows keeps its existing stand-in. Closes #713
… not utsname.processor (#713)
…face lowerings (A/B byte-identical)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ps_platform_platforminsrc/pyscriptc/runtime/ps_osmore.cto emit the CPython 3.14platform.platform()shape per target:macOS-<release>-<machine>-<processor>-<bits>-Mach-Oon macOS (processor falling back to machine, bitness fromsizeof(void*)),<sysname>-<release>-<machine>-with-glibc<version>on glibc Linux viagnu_get_libc_version(), and the plain uname triple elsewhere.PLATFORM_DIVERGENCEreference (constant and probe kwarg) intests/test_stdlib_call_table.py; the platform probe now compares against CPython directly. Also dropsMIRRORED_DIVERGENCEsince the fix(unicodedata): mirrored returns bool where CPython 3.14 returns int #712 fix is stacked underneath.src/pyscriptc/stdmore.pywith thework/712head so the stacked diff shows only this issue's changes.Verification
gcc -fsyntax-only -Wallagainst the runtime header set.Stacking
work/712(PR for fix(unicodedata): mirrored returns bool where CPython 3.14 returns int #712), which itself stacks onwork/difftab586(PR test(stdlib): table-driven call-table differential tests against CPython 3.14 #715). Merge order: test(stdlib): table-driven call-table differential tests against CPython 3.14 #715 → fix(unicodedata): mirrored returns bool where CPython 3.14 returns int #712 → fix(platform): platform.platform output differs from CPython 3.14 #713.Closes #713