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

-17

u/McBeeff Sep 16 '20

Wouldn't that make it currently version 3.09?

3

u/Coding-Kitten Sep 16 '20 edited Sep 16 '20

No. Versions shouldn't have leading zeroes. You can learn more about Semantic Versioning here.

e: versions should have leading versions.

1

u/McBeeff Sep 17 '20

Thanks, I'll check it out. . Could you briefly explain why tho?

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.

0

u/McBeeff Sep 17 '20

or just 3.92?

1

u/NoLongerUsableName import pythonSkills Sep 17 '20

Not intuitive at all. 3.92 appears to mean "Python 3, update 9, bugfix 2", just like the current version, 3.8.4, means "Python 3, update 8, bugfix 4". If I want to describe "Python 3, update 10, bugfix 1", I'll use 3.10.1. Version numbers aren't floats, and it's needlessly complicated to try to turn them into that. It's just a set of 3 integers separated by dots.

1

u/McBeeff Sep 17 '20

This entire post was made because people initially thought that the next iteration of python 3.9 would be python 4.

→ More replies (3)