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

mal@lemburg.com mal@lemburg.com
Mon, 24 Jul 2000 11:19:02 -0400 (EDT)


papadopo@shfj.cea.fr wrote:
> 
> > > 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.*.

If you need more detailed platform information, try platform.py
which you can download from my Python Pages.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/