TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you primarily use Python 2 or 3?

2 pointsby mattangriffelalmost 9 years ago
I&#x27;m teaching a college course on Python in the Fall and wanted to present some data on the market penetration of Python 3 within the Python community.<p>Here are some things I&#x27;ve discovered: - There are more monthly posts on Stack Overflow relating to Python 3 than Python 2 since April 2016. - 57.94% of survey respondents in London use Python 2.7 for work, while 33.03% use Python 3.4. - For personal use, 49.79% of survey respondents in London use Python 3.4, while only 44.42% use Python 2.7.<p>But I&#x27;d like to get firsthand data from a larger and more representative community.<p>So if you code in Python, do you primarily use Python 2 or 3?

3 comments

cauterizedalmost 9 years ago
I&#x27;ve yet to work in a company that began developing its primary Python codebase after 3 matured. Nor any company that had the engineering bandwidth to prioritize upgrading a working Python 2 codebase to 3 over work that directly impacted customers or business.<p>If I start a new codebase for a toy or throwaway project that doesn&#x27;t have to be importable into one of those codebases, I&#x27;ll start it in Python 3. If I remember to use it when creating the virtualenv. After all, with the primary project in Python 2, 2 is still my system default.
btgeekboyalmost 9 years ago
I used to put it off, especially because (a few years ago) I was working with a package that used Twisted, which was Python 2 only. (Not sure if it still is.)<p>Since PyCon a month ago, however, I&#x27;ve been making a conscious effort to use Python 3. Python 2 has less than 4 years of life left! [0]<p>[0] <a href="https:&#x2F;&#x2F;pythonclock.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pythonclock.org&#x2F;</a>
CyberFonicalmost 9 years ago
I have been using Python v3 since 3.1 was released. I didn&#x27;t have a large code base at the time so I found moving to v3 easy and have since developed all existing and new systems using v3.x. The only backward compatibility issue being Google App Engine SDK which requires v2.7. But even there I have had no problems with differences between the dialects.