From cee728c9f286ab7925d9c9e2c41b925baf303c28 Mon Sep 17 00:00:00 2001 From: "RUANG (James Roy)" Date: Sat, 11 Jan 2025 09:03:12 +0800 Subject: [PATCH] gh-128696: Add arm64 to the get_platform return val description (GH-128701) (cherry picked from commit 553cdc6d6856c1b4539a45eb90d0769f7c629355) Co-authored-by: RUANG (James Roy) --- Doc/library/sysconfig.rst | 3 ++- Lib/sysconfig.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/library/sysconfig.rst b/Doc/library/sysconfig.rst index aaccc0431d7647..9c343e29ff4bef 100644 --- a/Doc/library/sysconfig.rst +++ b/Doc/library/sysconfig.rst @@ -388,7 +388,8 @@ Other functions Windows will return one of: - - win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T) + - win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T) + - win-arm64 (64-bit Windows on ARM64, aka AArch64) - win32 (all others - specifically, sys.platform is returned) macOS can return: diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 517b13acaf6823..7dd63b935543d6 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -765,7 +765,8 @@ def get_platform(): solaris-2.6-sun4u Windows will return one of: - win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) + win-amd64 (64-bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) + win-arm64 (64-bit Windows on ARM64 (aka AArch64) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'.