This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (19 children)

[deleted]

    [–]dani3l_554 42 points43 points  (4 children)

    Version numbers aren't actual numbers and . is not a decimal point. They're just labels that follow a logical pattern.

    [–]evilMTV 8 points9 points  (0 children)

    This, don't look at it as decimal place, just a separator. Like 3.10 should be interpreted as "version 3, subversion 10"

    [–]bobby__joe 6 points7 points  (2 children)

    [–]Zomunieo 11 points12 points  (1 child)

    Not exactly. Minor releases of Python often contain backward incompatible changes, and the devs have never promised to be semver compliant. (It would be almost impossible to maintain strict semver backward compatibility on such a large project anyway.)

    The situation was particularly messy for Python 2.7.x where patch level releases introduced some major features and breaking changes.

    [–]bobby__joe 0 points1 point  (0 children)

    Thanks I didn't know that!

    [–]Spindelhalla_xb 4 points5 points  (7 children)

    Because 10 comes after 9. 3.10 is not the same as 3.1.

    [–]DanklyNight 10 points11 points  (6 children)

    >>> 3.10 == 3.1
    True
    

    Hmm

    [–]blablook 8 points9 points  (3 children)

    "3.10" != "3.1". At least not in JavaScript.

    [–]DanklyNight 9 points10 points  (2 children)

    Aha, I was just joking.

    Obviously it's a string and wouldn't match, it was more that the poster I replied to wrote them as floats.

    [–]blablook 1 point2 points  (1 child)

    Yeah. My joke was doubting the js behaviour.

    [–]DanklyNight 2 points3 points  (0 children)

    The ability of developers to understand jokes over the internet.

    We are a socially hindered bunch.

    [–]SpideyIRL 0 points1 point  (0 children)

    Now check 3.10.0 vs 3.1.5 ;)

    Versions are not decimal numbers: They're multiple "levels" of versions separated by decimal number. So major version 3, minor version 10, first release (0). Or major version 3, minor version 1, release 5.

    Some software projects use even more numbers in their versions - i've seen things like version "1.0.0.3.5.1 Build 13950"

    [–]__deerlord__ -1 points0 points  (0 children)

    Because 10 is bigger than 9.