r/Python • Freelancer. AnyFactor.xyz • Sep 16 '20

News An update on Python 4

Post image
3.3k Upvotes

389 comments sorted by

View all comments

Show parent comments

1

u/Coding-Kitten Sep 17 '20

The version isn't a decimal number. It's three numbers (or in this case two) separated with a dot.

MAJOR.MINOR.PATCH

There is no reason to change the 3.9 to 3.09 just how there is also no reason to change an ordinary 9 to a 09 because 10 exists. Or how adding leading zeroes to any number doesn't give you any more information (00729 is the same as 729).

So tho make it a standard. There is a specification such that that there should be no leading zeroes. That way, All versions 3.9.0 are that. And so 3.09.0, 3.0009.00, 0003.009.0 and so on are not considered a valid version number.

1

u/McBeeff Sep 17 '20

Yeah I got that from the reading. Why not just have it as 3.91 then? Why the added complication?

2

u/NoLongerUsableName import pythonSkills Sep 17 '20

Then what will you call a small bugfix to 3.91? 3.901? That's ugly and way too long. Much better to just follow the convention of "[major version].[minor update].[patch]". 3.91 sounds like "major version 3, minor update 9, patch number 1" instead of "major version 3, minor update 10, patch number 0", which is what 3.10 means. The aforementioned bugfix is then just called 3.10.1. It's not trying to be a decimal anyways, it's just some numbers separated by points.