Skip to content

Commit 1b4a856

Browse files
committed
Add a note to the platform.machine() documentation section
1 parent 046a4e3 commit 1b4a856

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/platform.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ Cross platform
5656
Returns the machine type, e.g. ``'AMD64'``. An empty string is returned if the
5757
value cannot be determined.
5858

59+
.. note::
60+
61+
The output of :func:`platform.machine` is system-dependent and may differ in casing
62+
and naming conventions across platforms. For example, on Apple Silicon macOS it may
63+
return ``'arm64'`` (lowercase), while on Windows-on-ARM it may return ``'ARM64'`` (uppercase).
64+
If you need consistent results, normalize the output in your code.
65+
5966

6067
.. function:: node()
6168

0 commit comments

Comments
 (0)