Re:Incrementally migrating over one million lines of code fr...
by rhacker on Wednesday February 06, 2019 @01:50PM
(#19098312)
Is python finally getting past the 2/3 jump?
[ Parent
| on HN ]
Re:Incrementally migrating over one million lines of code fr...
by sametmax on Wednesday February 06, 2019 @02:30PM
(#19098863)
It has for 2 years now. 3.6 was the tipping point, such a fantastic release.
See
https://www.jetbrains.com/research/devecosystem-2018/python/
For 2018 stats
Re:Incrementally migrating over one million lines of code fr...
by fredthomsen on Wednesday February 06, 2019 @03:14PM
(#19099352)
Agreed. 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.
Re:Incrementally migrating over one million lines of code fr...
by sametmax on Thursday February 07, 2019 @01:41AM
(#19103482)
I 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.
Re:Incrementally migrating over one million lines of code fr...
by thearn4 on Wednesday February 06, 2019 @04:11PM
(#19099990)
Can confirm, 3.6 is where my office made the leap too.
Re:Incrementally migrating over one million lines of code fr...
by Alex3917 on Wednesday February 06, 2019 @02:02PM
(#19098470)
It'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.
Re:Incrementally migrating over one million lines of code fr...
by lincolnq on Wednesday February 06, 2019 @02:11PM
(#19098610)
I 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".