28 ms·
Python adopts a 12-month release cycle
- drcongo 7y agoI hope it works out better than it has for macOS and iOS.
- Alex3917 7y agoFull thread from the mailing list: https://www.prettyfwd.com/t/ERcYpP8xQt-LG82eEoWB1Q/ https://www.prettyfwd.com/t/ERcYpP8xQt-LG82eEoWB1Q/
- kasdad 7y agoSeems to be some kind of a web forum. As one core developer states: "However this discussion was never announced on the ML." It looks like a couple of bureaucrats who thrive on fragmenting discussions have taken over. This does not look good for Python.
- willis936 7y agoIs there actual benefit to maintaining a language that isn’t backwards compatible? I remember python being lauded as the best language ever 10 years ago. Now, as I have to maintain several versions or face massive efforts to port code, I dread working with it as much as national instruments. It’s not just a little fractured. It’s fractured to its core to the point that just having any system working feels like a miracle. Why are they steering the ship into every possible rock?
- Cyph0n 7y agoAre you referring to the Python 2 -> 3 fiasco? If so, I think that the Python language committee will never make such a mistake again. They've seen first-hand how difficult it is to get the ecosystem to move forward after a breaking change like that. But within Python 3, I think the deprecation system is decent. As far as I know, it really only occurs with "uncommon" APIs, so the vast majority of code will continue to work as expected on later Python 3 versions.
- AlexeyBrin 7y ago> But within Python 3, I think the deprecation system is decent. As far as I know, it really only occurs with "uncommon" APIs, so the vast majority of code will continue to work as expected on later Python 3 versions. The problem is that every new Python version seems to break something. Python 3.8 was released almost two weeks ago, and some popular libraries still don't work with it, e. g. SciPy, Matplotlib, OpenCV, PyQt, PySide2 and probably a bunch of other libraries that depend on the above.
- jacquesm 7y agoWhich is just about everything outside of Keras/Tensorflow that I use. Highly frustrating. Languages should be designed with backwards compatibility in mind right from day #1. Porting code isn't free.
- willis936 7y agoMostly, yes, as I’m responsible for a data acquisition system written 10 years ago. “Just” getting to python 3 is a massive effort which would first require getting to 2.7 from 2.5, which itself would be a time consuming task. I’m starting to think the best solution would be to just stay on python 2.5. Updates to software should not be the implementer’s tormentor.
- 3JPLW 7y agoThen this is an unfair critique of this new release process. If you had issues with breaking changes between minor 3.x versions, then I'd fully understand.
- willis936 7y agoAre complaints about things breaking between 2.x versions somehow invalid? It’s the same steering group that has made a series of breaking changes. Even people on branches of this thread claim there are breaking changes in 3.7 > 3.8. I’m not sure I would willingly use python for any new project unless necessary, putting it into the same bin as national instruments.
- 3JPLW 7y agoI was curious how this changed from their previous process. It looks like they've historically averaged about once per 18 months for the past few releases. 3.4.0 — March 2014 3.5.0 — Sept. 2015 3.6.0 — Dec. 2016 3.7.0 — June 2018 3.8.0 — Oct. 2019 I'm not familiar with their release process — were those "scheduled" releases, too, but just at 18 months (plus a little slop for release QA)? Or were they just ready when they were ready?
- donarb 7y agoIn the PEP 602 document (https://www.python.org/dev/peps/pep-0602/ https://www.python.org/dev/peps/pep-0602/) they state that the previous schedule was roughly 18 months. One reason they wanted to forgo this time frame is that there is pressure to stuff many changes into each release because missing the deadline means waiting another 18 months.
- vnglst 7y agoI'm wondering why Python has such an slow release cycle? There are new Node.js releases on a weekly (and sometimes daily) basis. Why not ship any improvements you have immediately to the users?
- jrumbut 7y agoI like a more stately release process for a language (compared to applications where I do love frequent releases). Stability and predictability are important. Porting code to new versions is not something I want to be continuously working on, and increasing the number of OS/language/library combinations to debug is painful. Once a year sounds about right, with important bug and security fixes being pushed out when needed.
- 3JPLW 7y agoNaive question: does Python follow SemVer?
- icegreentea2 7y ago
- thewhitetulip 7y agoCan someone please shed some light on why 12 month release cycles are necessary for a language? Why would we want our language to constantly change?
- Arkanosis 7y agoNo language is perfect, so languages either improve over time or lose to other languages which do. On why fixed release cycles are a good thing, I find this FAQ by Herb Sutter of C++ fame enlightening: https://herbsutter.com/2019/07/13/draft-faq-why-does-the-c-standard-ship-every-three-years/ https://herbsutter.com/2019/07/13/draft-faq-why-does-the-c-s... It doesn't make them necessary, just likely better than the alternatives (ie. no change or changes “when it's done”).
- Lendal 7y agoGiven that the pace of technological innovation cannot be stopped and all existing technologies have flaws, the alternatives are: A) Accept that your language will change over time and manage it. B) Over time, keep changing to better languages after your language dies out. Yeah, I think A would be the preferred option.
- inglor 7y agoBecause objectively our languages are still quite awful and we still have a ton of progress to make. Look at Python or JavaScript or C++ 10 years ago. They each encompassed the same philosophy they encompass today but lacked a lot of the ergnomics and tooling that make them better languages. Look at Go or Rust 5 years ago. Look at Java. We are constantly improving our languages because improving a language is a great productivity win.
- callesgg 7y agoSomething can't be objectively awful. Awful is a subjective descriptor.
- 7y ago
- AlexeyBrin 7y agoThis is great if you code in pure Python! The problem is that every new Python version seems to break something. Python 3.8 was released almost two weeks ago, and some popular libraries still don't work with it, e. g. SciPy, Matplotlib, OpenCV, PyQt, PySide2 and probably a bunch of other libraries that depend on the above.
- maxerickson 7y agoThere is work towards a stable abi, that should help with such things, eventually.
- dannyz 7y agoYes, exactly. Every new 3.x release ends up being a not insignificant amount of work for us to update our build system for our not pure Python packages.
- dsd 7y agoMaybe a faster release cycle will help Python and friends insulate from this issue better. Akin to os security updates.
- progval 7y agoAccording to the announcement, it should get better: "Now that the stable ABI has been cleaned, extension modules should feel more comfortable targeting the stable ABI which should make supporting newer versions of Python much easier"
- takeda 7y agoThat's not because 3.8 broke something. The packages you mentioned require compiling. To make it simpler for users, the maintainers also provide precompiled versions. The issue here is that no one precompiled them for 3.8 yet. You can still install them but you need to have compiler and their dependencies installed. The length of release cycle is irrelevant for this particular problem.
- kissgyorgy 7y ago> The length of release cycle is irrelevant for this particular problem. No because you need to compile those packages more often, which as it seem, very problematic.
- elisharobinson 7y agoi think type obsession should stop . And more effort should be placed on performance optimization of exiting apis. but there is lot to be learned from LTS lifestyle of other products like debian and redhat which allow community to be built around them.
- kstrauser 7y agoWhy's that? I love the type system. We're not dogmatic about it - like, no one's going to reject a PR because it doesn't have complete type coverage - but it's a seriously useful tool and has uncovered some long-hidden bugs in our code. From a tooling point of view, I love hovering over a function name and seeing the types of its parameters. PyCharm supported that, using what I consider to be ugly and janky docstring comments, but now every editing environment can provide that information.
- takeda 7y agoYeah, it also helps with auto-completion and makes refactoring reliable. From my experience type annotations in python are actually more reliable than types in Go.
- sethammons 7y agoCan you expand on that? I'm not familiar with type annotations, but I use Go daily. Aside from interface{} abuses, how can something be more reliable than accepting a type in Go? (int64, string, []byte, myType{})
- takeda 7y agoI basically had less issues when trying to refactor annotated python code in PyCharm than Go code in GoLand (if you're not familiar, both of these IDEs are made by the same company JetBrains). My belief is that it is a bit harder for IDE to determine which structs and interfaces should be changed, due to Go using "duck typing" (or more correctly called structural type system). The mypy uses nominal type system (similar to what you're used in C++, Java etc) by default but it also allows to implement duck typing in places where you need it through Protocols. Overall the type system is more powerful than the one in Go[1], it even includes generics =) Slightly unrelated, but when working with Go, I feel like the type always gets in my way. Go typing (similarly to Python) is strict and that's great, but Go trying to be low level it implements different sizes (int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64) it doesn't do implicit conversion like C, but it also doesn't implement generics, and stdlib only implements functions for one of the type. That means if you use anything else than int, int64, float64 in your program you'll be in a lot of pain and will be constantly casting the types back and forth. Having programmed in Python (with type annotations) and now at my current job in Go, I love Python. [1] https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html
- raymondh 7y agoFrom my point of view, the Python release cycle presents several challenges in terms of two-way communication with users. Ideally, we want people to download the beta releases and give feedback on their real world experience with new features while there is still time to make changes. (That is almost the entire point of a beta-release accompanied by a feature freeze). Actual practice tends to fall short of the ideal for several reasons: * Not many users download the beta and try out the features. On the bug tracker, we tend to get very little feedback on our beta releases. * Some features land with little to no documentation (the walrus operator, for example). This makes it difficult for users to assess the feature. * The PEP process is decisive. Once a PEP is approved, it is too late for developers to give feedback. The feature will happen regardless of user feedback. * Downstream tooling needs time to update, so it is difficult to try out a beta when you can't get your dependencies to run (MyPy, Black, requests, etc).
- coldtea 7y ago>The PEP process is decisive. Once a PEP is approved, it is too late for developers to give feedback. The feature will happen regardless of user feedback. That shouldn't be the case. There should be a PEP-re-evaluation stage, once the feature is available. It might not affect major parts of the PEP (that should be handled in the original PEP discussions), but for things that are found to be problematic in actual use, once the feature is available in beta, changes should be considered before the final release.
- Skunkleton 7y agoA new PEP can be created. At some point the RFC phase ends and the feature needs to be committed to.
- deleted 7y ago[deleted]
- joshuamorton 7y agoGenerally speaking, for a pep to be approved, there has to be a working proof of concept. This isn't always true, but I've seen it be the case for most recent peps.
- ambivalence 7y agoHi, Łukasz Langa here, author of PEP 602 which documents the change. I can answer questions if you have any.
- droithomme 7y agoIt's much better for things to be released when they are ready than on an artificial and completely arbitrary cycle, brutally enforced.
- badrabbit 7y agoWhatever you write in python,you must commit to maintaining it yearly. If you write software and people buy it,you have to update it once in a while. There are many use cases where this won't fly and it's fine to use something more standardized and stabilized. They should have done this a long time ago to avoid the 2.x -> 3.x headache. Undesirable for those of us that sorta depend on stackoverflow answers to get a lot of things done but I am sure there's a bigger picture the python devs are seeing.
- stanislavb 7y agoWelcome to the world of Ruby. It has a new major release every Christmas. On the day.