[issue12158] platform: add linux_version()
Marc-Andre Lemburg
report at bugs.python.org
Mon May 23 15:30:13 CEST 2011
Marc-Andre Lemburg <mal at egenix.com> added the comment:
STINNER Victor wrote:
>
> STINNER Victor <victor.stinner at haypocalc.com> added the comment:
>
> Use "%s.%s.%s" % linux_version() if you would like to format the version. The format is well defined. (You should only do that under Linux.)
No, please follow the API conventions in that module and use a string.
You can then use linux_version().split('.') in code that want to
do version comparisons.
Thanks,
--
Marc-Andre Lemburg
eGenix.com
________________________________________________________________________
2011-06-20: EuroPython 2011, Florence, Italy 28 days to go
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12158>
_______________________________________
More information about the Python-bugs-list
mailing list