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

-7

u/productive_guy123 Sep 16 '20

Why didn’t they refer to the version as 3.09 rather than 3.9

30

u/[deleted] Sep 16 '20 edited Sep 16 '20

Because version numbers aren't decimals. The points just separate major and minor versions, and often things like patch versions. There's plenty of software with more than two sections of the version, like 2.15.7. As it happens the app I work on just bumped from a x.x.9 to x.x.10 this week.

Edit: not sure why you're getting downvoted for asking this. It's a totally fair question if you don't have a lot of experience with development.

9

u/duncan-udaho Sep 16 '20

This is correct. It's not a decimal number. It's a version number, probably a semantic version number, which prohibits leading zeros and in fact specifically calls out this case. 1.9.0 -> 1.10.0

2

u/productive_guy123 Sep 17 '20

Thanks for the explanation, I honestly don’t know why though

2

u/[deleted] Sep 17 '20

People just like to feel superior I guess. To make the case even better how reasonable the question is: I'm the person who decided our version convention and even decide in most cases how we break up releases into patches and minor versions, so you would think I would be pretty intimately aware of how it all works. I happened to need to write a simple function recently that compared version numbers and my immediate impulse was just to convert it to decimals (with major version being hundreds). I realized right after writing it out that I couldn't count on there being less than 100 patches or minor versions, but it goes to show that even if you are very familiar with it, thinking about it the way you did is totally natural.