4 ms·
Is python finally getting past the 2/3 jump?
by rhacker 8y ago
Is python finally getting past the 2/3 jump?
- dangoor 8y agoPython 2 EOL on January 1, 2020 is pushing a lot of folks to seriously look at this. This is a big thing we're looking at right now at Khan Academy.
- Alex3917 8y agoIt's already been since 2015. Every major Python dependency has been Python3 compatible for several years, and many have already gone Python3 only. If you have a good test suite it's pretty easy to migrate, you can easily do a couple thousand lines per day. There were a few third-party testing tools that used to be fairly popular that are no longer well maintained, so if your tests are written in those then you might be looking at re-writing the app from scratch. But otherwise it's fairly straightforward to port. Even if you did your string encoding just using guess-and-check, which most people did, it still doesn't take all that long to upgrade as long as there are tests.
- lincolnq 8y agoI would say yes. I'm pretty sure most people are writing all new projects exclusively in python3, except if you need them to run on old distros without any dependencies (lots of distributions shipped for years with python2 but not python3 installed by default). The ecosystem of 3 is very mature - I've been running my servers' production code for 5+ years in python3 and had no major issues with that choice. The only thing left is "legacy codebases".
- Jare 8y agoIIRC osx still ships python2 only with the OS.
- sametmax 8y agoIt has for 2 years now. 3.6 was the tipping point, such a fantastic release. See https://www.jetbrains.com/research/devecosystem-2018/python/ https://www.jetbrains.com/research/devecosystem-2018/python/ For 2018 stats
- fredthomsen 8y agoAgreed. I have been very pleased with the cleaner asyncio API in 3.7 though. Much simpler for people writing async code for the first time.
- sametmax 8y agoI suggested for something like asyncio.run() to be included much earlier than that but python-ideas is a dead end for actually getting things into python. Eventually yuri saved us all because he could demonstrate the usefullness of things on uvloop first.
- thearn4 8y agoCan confirm, 3.6 is where my office made the leap too.