Skip to content

Commit e4384d1

Browse files
[3.12] gh-128696: Add arm64 to the get_platform return val description (GH-128701) (#128773)
gh-128696: Add arm64 to the get_platform return val description (GH-128701) (cherry picked from commit 553cdc6) Co-authored-by: RUANG (James Roy) <[email protected]>
1 parent 64396fb commit e4384d1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/library/sysconfig.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ Other functions
388388

389389
Windows will return one of:
390390

391-
- win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T)
391+
- win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T)
392+
- win-arm64 (64-bit Windows on ARM64, aka AArch64)
392393
- win32 (all others - specifically, sys.platform is returned)
393394

394395
macOS can return:

Lib/sysconfig.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,8 @@ def get_platform():
765765
solaris-2.6-sun4u
766766
767767
Windows will return one of:
768-
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
768+
win-amd64 (64-bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
769+
win-arm64 (64-bit Windows on ARM64 (aka AArch64)
769770
win32 (all others - specifically, sys.platform is returned)
770771
771772
For other non-POSIX platforms, currently just returns 'sys.platform'.

0 commit comments

Comments
 (0)