The "good" thing is that sys.platform reports the [major] version
Python was *built* on, so our binary distributions (if built on a 2.x
kernel) won't break on 3.x Linux kernels, at least not because someone
uses sys.platform=="linux2" to detect Linux.

The suggested idiom to use instead is sys.platform.startswith("linux")
(which is a compile-time constant); of course there are other ways to
[almost] achieve the same, e.g. using os.uname()[0]=="Linux", where
the latter is determined at run- rather than compile-time.


-leif

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to