module texthelper.version_helper
¶
Functions¶
function |
truncated documentation |
---|---|
Compares two versions. |
|
Converts a string into a tuple with numbers wherever possible. |
Documentation¶
Helpers about versionning.
New in version 1.8.
-
pyquickhelper.texthelper.version_helper.
compare_module_version
(num, vers)[source][source]¶ Compares two versions.
- Parameters
num – first version
vers – second version
- Returns
-1, 0, 1
This function implements something similar to StrictVersion (from distutils) but probably more simple.