TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Are you/your company still using Python 2 in production?

8 点作者 boltefnovor超过 4 年前

4 条评论

physicsguy超过 4 年前
One project I&#x27;m involved in. We used a dependency which was Python 2 only. When they finally upgraded to Python 3, it was almost a complete rewrite and completely undocumented, and broke a ton of functionality we used. We didn&#x27;t have the resource to fix the mess and aren&#x27;t actively developing it, so we dumped it in a Docker container with the pinned versions, and use it as is.<p>Also worth saying that a lot of commercial C# applications that bundle a Python console are using Python 2.7, because IronPython doesn&#x27;t go higher than that currently.
评论 #24835586 未加载
sethammons超过 4 年前
Yup. We are working to phase it out and replace it with better solutions, but it is there and working at scale (about 5 million requests a minute across the cluster, looking at graphs). Killing it slowly as we move load out of it. Pretty sure we&#x27;ve moved out 90% of the load over the last couple of years.
drchaim超过 4 年前
Only one project is still in Python2. A project that were transfered to my without test, docs, etc. and a component heavily relying in sockets, unicode, regex that i&#x27;m quite scare to port to python3.<p>I&#x27;ll guess I will decouple that component from others and I&#x27;ll keep it in python3 while porting the rest to python3 in the future.
qppo超过 4 年前
Do build dependencies count?<p>I have a build script that requires it (rather, it&#x27;s a build script of a dependency). I didn&#x27;t write it and don&#x27;t have time or incentive to upgrade it, since it works fine.