logoalt Hacker News

rolymathtoday at 12:49 PM6 repliesview on HN

The Python community loves confusing versioning.

I mean, obviously Python 2.7 is newer than Python 3.1

I remember swearing I would never migrate to python3 but here we are, I migrated without even feeling it or realizing when (But I do remember django played a big role).


Replies

jubilantitoday at 2:41 PM

Just read https://semver.org/

chmetoday at 1:01 PM

That isn't confusing at all, if you know how maintained stable releases work.

Happens with the Linux kernel as well.

hk__2today at 1:43 PM

There are a lot of large projects where X.1 is newer than Y.0. You release a new major version for breaking changes, but you backport security changes to previous major releases as well.

Longwelwindtoday at 1:00 PM

Isn't that whole point of semantic release?

Minors and hotfixes allow you to release a new version for an older release (like if you released 3.7 but you found a bug present in 3.4, you can release 3.4.1 which would be newer than 3.7), making it possible to have multiple supported versions at the same time.

yard2010today at 1:29 PM

Tangibly related, did you know that odd versions of node don't get LTS, I found it odd at first

paulddrapertoday at 1:54 PM

That’s probably the worst example you could have chosen.

You shouldn’t assume anything about relative date of 2.7 and 3.1.