Possible values for platform.machine()

Viewed 3045

platform.machine()
Returns the machine type, e.g. 'i386'. An empty string is returned if the value cannot be determined.

What are the possible values for this field?

2 Answers

Possible values are listed there. For Unix and Linux based OSs, platform.machine() gives you the same answer than the command uname -m.

For Windows though it's a bit more complicated. uname doesn't exist on this platform and though Cygwin gives you the possibility to use uname -m it won't give you the same result as platform.machine() (respectively x86_64 and AMD64 on my Windows machine). That's because of a choice made with the platform module.

Related