Skip to content

Inconsistency: upper vs lower case inconsistency in platform.machine() on Windows-on-ARM vs Apple Silicon ARM64 #138952

@juj

Description

@juj

Bug report

Bug description:

import platform
print(platform.machine())

returns lowercase arm64 when run on Apple Silicon Mac M1, but uppercase ARM64 when run on Lenovo Qualcomm Snapdragon X IdeaCentre that is running Windows 11-on-ARM.

Is that intentional? Is that even fixable anymore without breaking? If not, this quirk might make sense to be documented in https://docs.python.org/3/library/platform.html#platform.machine

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions