Possible values ​​for the .machine () platform

platform.machine()
Returns the type of machine, for example. 'I386'. An empty string is returned if the value cannot be specified.

What are the possible values ​​for this field?

+4
source share
1 answer

On platforms with os.uname()this information comes directly from the result of this API call . That is, it platform.machine()returns the same as the command uname -m.

So the answer really depends on the implementation of the kernel system call uname(2). For this, see this question and answer:

Possible values ​​for `uname -m` (utsname.machine)

+2
source

Source: https://habr.com/ru/post/1681541/


All Articles