[Python-bugs-list] sys.platform (PR#411)

papadopo@shfj.cea.fr papadopo@shfj.cea.fr
Mon, 24 Jul 2000 09:39:34 -0400 (EDT)


> > sys.platform is not documented enough.
> > 
> > Its value is:
> > - 'linux-i386' on RedHat 6.2 
> > - 'linux2' on SuSE 6.4
> > - 'linux1' on other Linux systems?
> > 
> > Especially the difference between RedHat 6.2 and SuSE 6.4 is annoying.
> > Theses systems are compatible after all...
> 
> The RedHat folks apparently patch the value to have that value -- it's
> not supposed to be that way.  Not much we can do about this...

I see... Bloody RedHat folks!

Then I guess `linux 1' means libc5 and `linux2' means glibc but
then maybe this could be documented too. In contrast `sunos5' is
quite clear. On all Solaris machines `uname -sr` yields SunOS 5.*.

Dimitri