2014-12-18 13:23:36 |
Michele Simionato |
description |
Using a tuple to describe the version a correct comparison will be possible.
Currently a comparison between "1.2.10" and "1.2.2" return wrong result because is using lessicographical ordering.
From ipython:
In [1]: (1, 2, 10) > (1, 2, 2)
Out[1]: True
In [2]: "1.2.10" > "1.2.2"
Out[2]: False |
Using a tuple to describe the version a correct comparison will be possible.
Currently a comparison between "1.2.10" and "1.2.2" return wrong result because is using lessicographical ordering.
From ipython:
In [1]: (1, 2, 10) > (1, 2, 2)
Out[1]: True
In [2]: "1.2.10" > "1.2.2"
Out[2]: False
Moreover, we should increase the minor version when running from Git. |
|