This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients lemburg, neologix, pitrou, rosslagerwall, vstinner
Date 2011-05-23.13:11:26
SpamBayes Score 7.283432e-05
Marked as misclassified No
Message-id <4DDA5CFB.6090804@egenix.com>
In-reply-to <1306155967.28.0.782949914698.issue12158@psf.upfronthosting.co.za>
Content
STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
>> The returned value should be a version string in a fixed format,
>> not a tuple. I'd suggest to use _norm_version() for this.
> 
> How do you compare version strings? I prefer tuples, as sys.version_info, because the comparaison is more natural:
> 
>>>> '2.6.9' > '2.6.20'
> True
>>>> (2, 6, 9) > (2, 6, 20)
> False

The APIs are mostly used for creating textual representations
of system information, hence the use of strings.

You can add an additional linux_version_info() API if you want to
have tuples.
History
Date User Action Args
2011-05-23 13:11:27lemburgsetrecipients: + lemburg, pitrou, vstinner, neologix, rosslagerwall
2011-05-23 13:11:26lemburglinkissue12158 messages
2011-05-23 13:11:26lemburgcreate