3 ms·
I recently heard someone advise for a friend to learn python2.7 instead of Python3. As someone not in the industry, this was surprising to me? Are companies/peo
by andars 12y ago
I recently heard someone advise for a friend to learn python2.7 instead of Python3. As someone not in the industry, this was surprising to me? Are companies/people still writing new code in python2?
- goostavos 12y agoI don't think the issue is new code, so much as it's all the old code that needs supporting. Also, library support still isn't 100% there. So, if one critical piece of your stack isn't on 3.x, you've gotta throw out the whole thing that stick with 2.x.
- yen223 12y agoThe biggest issue is that there's no real compelling reason to migrate away from Python 2 now. It's not meant to be an attack on Python 3 - Python 2.7 is still well-supported, and is plenty good enough for a lot of us. That said, if I were starting out now, I'd start with Python 3.
- maxander 12y agoThis is also what I heard as of a year or two ago, but I think its becoming a progressively more outdated piece of advice as the world of Python 3 libraries catches up with 2. But certainly, Python 2.7 is still being written widely, and will remain so for awhile.
- stefantalpalaru 12y agoThink of Python 2 and Python 3 as different languages with the first having a larger ecosystem and slightly better performance in some common workloads on the main implementation.
- hogu 12y agoalmost every finance shop in nyc that is using python is using python 2.7. And yes - for new code as well.