revisiting the "What am I running on?" question

songbird songbird at anthive.com
Tue Feb 19 09:35:39 EST 2019


Dan Sommers wrote:
...
> Python 3.7.2 (default, Jan 10 2019, 23:51:51)
> [GCC 8.2.1 20181127] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.platform
> 'linux'

  this doesn't help me for the rest of the platforms
available.


=====  from the docs:

  if sys.platform.startswith('freebsd'):
    # FreeBSD-specific code here...
elif sys.platform.startswith('linux'):
    # Linux-specific code here...

For other systems, the values are:
System 	platform value
Linux           'linux'
Windows         'win32'
Windows/Cygwin  'cygwin'
Mac OS X        'darwin'

=====

  no win64?
  no arm(s)?

  no legs(a joke :)...

  the above is missing a lot of devices.

  i looked around for something more complete
and didn't come across anything more definitive
that looked to be up to date.


  songbird


More information about the Python-list mailing list