dbr dbr - 1 year ago 103
Python Question

Possible values from sys.platform?

What are the possible return values from the following command?

import sys
print sys.platform

I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)

dbr dbr
Answer Source

Mac OS X (10.4, 10.5, 10.7, 10.8):


Linux (2.6 kernel):


Windows XP 32 bit:


Versions in brackets have been checked - other/newer versions are likely to be the same.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download