Version checks are also the reason why we have Windows 10 and not Windows 9 because people checked whether the OS version started with "Windows 9" (for Windows 95 and Windows 98).
The source to that information (as far as I can tell) is a Reddit post claiming to be from a Microsoft developer. I've worked with programmers dumb enough to write such a version check, so I totally believe this might be true, but I'd love an official source.
Code that will break in Python 4
91–100 of 237 posts
Re: Code that will break in Python 4
#92Has there actually been a statement that python 4 will be backwards compatible to python 3?
I don't have any links but I know there have been statements by core devs that, when/if there is another major version of python being developed, there will be an upgrade path to make the 3->4 transition much better than the 2->3 transition.
Re: Code that will break in Python 4
#93Re: Code that will break in Python 4
#94As someone that uses Python intermittently it seems like there's still a lot more tutorials, Q&A, and documentation for v2 on the internet than for v3. When searching for info about python it's often difficult to tell if I'm looking at something for v2 or v3, and when I can tell it's usually for v2.
Re: Code that will break in Python 4
#95Re: Code that will break in Python 4
#96Reminds me of when Linus tagged Linux 3.0 and it broke a bunch of peoples code due to their bad version checks. Linux 2.x had been going for about 15 years.
I had to write a shared library to override the call and inject that into the CrashPlan process so it'd be happy. Fun times.
Re: Code that will break in Python 4
#97Earlier quoted context omitted.
... thats stupid. Semver isn't that complicated, and everyone understands what 3.10 means.
Semver isn't all that OLD; it came out in 2009, I think? (The SemVer site very helpfully doesn't have any dates on it.) Python, meanwhile, came out in 1991. Not having precognition made it difficult for Python to adopt SemVer, and now that they have versioning practices in place there needs to be more than "I like SemVer" as a compelling argument for them to change. Especially since there are reasonable people who ha…
Re: Code that will break in Python 4
#98Earlier quoted context omitted.
I have nothing to back this up other than my increasingly unreliable memory, but the semantics of SemVer goes back further than 2009. Maybe it wasn't formally written out, but as far back as the 90s that XX.YY.zz could be translated as XX == major changes, breaking changes for APIs, reworked UI for end-user apps. YY == some new functionality, no breaking/major changes. zz == bug fixes. It probably goes back further t…
There were a lot of projects informally using what semver defined, but there were also a lot of other popular versioning schemes. Odd minor = unstable version, even minor = stable version used to be pretty popular and is still used by a few projects. The main thing that helped make SemVer the default assumption was package managers that baked it into the dependency resolution, as until then a project's versioning sch…
Re: Code that will break in Python 4
#99Doesn't compute.
You can't say you don't know anything about Python4 and immediately follow up with suggestions on how to program for it.
And if you really want to be consistent, at least:
if (python2):
// python 2
else if (python3):
// python 3
else:
raise "I have no idea what I'm doing"
At any rate, given the time lapse between Python releases and how catastrophic version migrations have been so far, it's safe to say that by the time Python 4 comes out (if ever), we will all have long retired from development.Re: Code that will break in Python 4
#100Earlier quoted context omitted.
All my code uses from __future__ import __all__
Silly you, time travel has existed for quite a while by the time python 7000 is released. No import statements are required as everything you need is, and always has been, included from the beginning of the ages. Somehow all of those libraries are still smaller than my slack desktop app.
https://en.wikipedia.org/wiki/List_of_burn_centers_in_the_Un...