A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-March/087775.html below:

[Python-Dev] version compare function into main lib

[Python-Dev] version compare function into main lib [Python-Dev] version compare function into main libGreg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 27 12:20:34 CET 2009
anatoly techtonik wrote:

> Correct me if I wrong, but shouldn't Python include function for
> version comparisons?

Can't you just compare sys.version_info tuples?

 >>> sys.version_info
(2, 5, 0, 'final', 0)

Assuming the other possibilities for 'final' are
'alpha' and 'beta', these should compare in the
right order.

-- 
Greg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4