View Single Post
Old Today, 03:07 PM   #13
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 467
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by DrChiper View Post
Ok, so putting a zero (or nothing) on the 4th position will not break the system?
Absolutly not. The way that Calibre (and Python) compare the tuple for version number make that we can compare version with different lenght without issue. It compare one-by-one each pair inside each versions, if a pair is identical, Calibre compare the next pair, else stop comparing at the first different pair.
And if at the end, all the three first pairs are identical, and that one version has a fourth number, the four length "win" de facto.

Last edited by un_pogaz; Today at 03:12 PM.
un_pogaz is offline   Reply With Quote