Code that will break in Python 4
11–20 of 237 posts
Re: Code that will break in Python 4
#12Has there actually been a statement that python 4 will be backwards compatible to python 3?
I believe they said they were going to try very hard to not do major backwards compatible breaking changes again. > My current expectation is that Python 4.0 will merely be "the release that comes after Python 3.9". That's it. No profound changes to the language, no major backwards compatibility breaks - going from Python 3.9 to 4.0 should be as uneventful as going from Python 3.3 to 3.4 (or from 2.6 to 2.7). I even…
Re: Code that will break in Python 4
#13don't be silly - my code will long be replaced when python 4 comes out! it's just a temporary hack/short term solution anyway.
Re: Code that will break in Python 4
#14But more seriously, probably good advice. Isn't "explicit" one of the Pythonic mantras?
But I'm wondering if any code written today really will survive until "Python 4"?
Re: Code that will break in Python 4
#15Of course, this opens the opportunity for two other compatibility libraries. "twelve" will be for supporting Python 3 and 4 and "twentyfour" will support Python 2, 3, and 4 at once (I hope nobody will seriously consider a library called "eight").
Re: Code that will break in Python 4
#16Re: Code that will break in Python 4
#17Re: Code that will break in Python 4
#18Re: Code that will break in Python 4
#19Re: Code that will break in Python 4
#20This is a surprisingly common anti-pattern. See also potential reason why there was no Windows 9 (programs checking for Windows 95/98) and various breakages for commercial programs on Linux when they check the kernel version.