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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How we rolled out one of the largest Python 3 migrations

286 点作者 ddeville超过 6 年前

17 条评论

mr_toad超过 6 年前
&gt; However, rather than use the native toolchains directly, such as Xcode for macOS, we delegated the creation of platform-compliant binaries to py2exe for Windows, py2app for macOS, and bbfreeze for Linux.<p>I wish the authors of more Python tools would deploy standalone applications. I do not like having to maintain various sets of Python installers&#x2F;package managers (because every Python tool seems to use a different installer). Especially on cloud servers that often lack a whole set of dependencies that Python developers just seem to take for granted.<p>I’m not a Python developer. I don’t have the time or the inclination to repackage various tools and untangle dependencies.<p>Given the choice between trying to figure out how to get multiple Python tools to behave together, or using another tool, I’ll almost always choose an alternative.
评论 #18071820 未加载
评论 #18073407 未加载
评论 #18073862 未加载
评论 #18098920 未加载
评论 #18072843 未加载
thijsvandien超过 6 年前
Interesting write-up, though it leaves me terrified how a relatively small, more or less single purpose application like the Dropbox client has over 1 million lines of code in Python alone.
评论 #18070352 未加载
评论 #18071391 未加载
评论 #18071521 未加载
评论 #18070781 未加载
评论 #18070128 未加载
评论 #18073741 未加载
评论 #18072586 未加载
评论 #18070176 未加载
makecheck超过 6 年前
It’s funny, after Mojave was released recently I thought it might finally have a python3 <i>installed</i>, even if it’s not the default. Nope, still Python 2.7.<p>This is good for me since I deployed a Python-dependent app under the assumption that the system Python would be stable and reliable. It allows relatively complex things to be achieved with a tiny download package.<p>I’ve been prepared to adopt Python 3 for awhile but it just isn’t necessary when using system defaults.
评论 #18073356 未加载
madrox超过 6 年前
As a python engineer still living in 2.7, it&#x27;s great to see major codebases making the move. I know I have a similar experience coming in my future, and I appreciate hearing what seems like more or less a success story come from it.
wiz21c超过 6 年前
FTA :<p>&gt;&gt;&gt; On the surface, the application would more closely resemble what the platform expects, while behind various libraries, teams would have more flexibility to use their choice of programming language or tooling.<p>I&#x27;m always fascinated by how the implementation of the core principles of an application is dictated by factors alien to it, such as OS, company organisation, etc. Therefore, the job of coding is often a small part compared to the amounts of trivialities, project management decisions, customer&#x27;s ideas, corporate policies, etc. Although my soul is a coder&#x27;s one, I always realize how much coding is just a small part of what I call application development.
drej超过 6 年前
Here&#x27;s a nice overview of how Facebook migrated their codebase to Python 3. While it&#x27;s different in nature (server side vs. client side), it&#x27;s rather interesting.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=H4SS9yVWJYA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=H4SS9yVWJYA</a>
vemv超过 6 年前
I hope this kills (or helps killing) the 100+ thread count I have always seen in macOS. It surpasses any other thread count from far more important&#x2F;sophisticated processes.<p>I&#x27;d say that&#x27;s a waste (if not abuse) of the system&#x27;s resources and scheduling system.
评论 #18077445 未加载
评论 #18073735 未加载
sandGorgon超过 6 年前
Is there any sample code that illustrates this kind of python embedding versus one of the freezer scripts ?<p>We used to build desktop software using pyqt and freeze it. I wonder how that entire toolchain looks like in this new way.
评论 #18075724 未加载
yieFiseh超过 6 年前
But their Debian packages still depend on Python 2.
chrisseaton超过 6 年前
What happened to their new implementation of Python they were building? I know it was cancelled, but not really why.
评论 #18070763 未加载
j7ake超过 6 年前
Anyone curious to estimate the cost for Dropbox to migrate to Python 3?
评论 #18074522 未加载
dwheeler超过 6 年前
If you can&#x27;t get it directly (I can&#x27;t), there is an archive available at <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20180925210033&#x2F;https:&#x2F;&#x2F;blogs.dropbox.com&#x2F;tech&#x2F;2018&#x2F;09&#x2F;how-we-rolled-out-one-of-the-largest-python-3-migrations-ever&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20180925210033&#x2F;https:&#x2F;&#x2F;blogs.dro...</a>
d__k超过 6 年前
A guide to migrating to Python 3 (with pleasure :)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;arogozhnikov&#x2F;python3_with_pleasure" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arogozhnikov&#x2F;python3_with_pleasure</a>
Born_Again超过 6 年前
Great write-up and those two graphs are interesting. It&#x27;s cool to learn how different companies treat their beta users. I wish this article touched upon more of the technically difficulties with switching from Python 2 to 3 too.<p>A̵l̵s̵o̵ ̵a̵ ̵s̵m̵a̵l̵l̵ ̵h̵e̵a̵d̵s̵-̵u̵p̵:̵ ̵a̵t̵ ̵t̵h̵e̵ ̵e̵n̵d̵ ̵o̵f̵ ̵t̵h̵e̵ ̵f̵i̵r̵s̵t̵ ̵p̵a̵r̵a̵g̵r̵a̵p̵h̵,̵ ̵&quot;̵v̵e̵n̵e̵r̵a̵b̵l̵e̵&quot;̵ ̵s̵h̵o̵u̵l̵d̵ ̵b̵e̵ ̵&quot;̵v̵u̵l̵n̵e̵r̵a̵b̵l̵e̵&quot;̵ ̵(̵u̵n̵l̵e̵s̵s̵ ̵y̵o̵u̵ ̵m̵e̵a̵n̵ ̵w̵e̵ ̵s̵h̵o̵u̵l̵d̵ ̵l̵o̵o̵k̵ ̵b̵a̵c̵k̵ ̵a̵t̵ ̵t̵h̵e̵ ̵s̵a̵c̵r̵e̵d̵ ̵p̵y̵w̵i̵n̵3̵2̵ ̵l̵i̵b̵r̵a̵r̵y̵ ̵w̵i̵t̵h̵ ̵h̵o̵n̵o̵r̵)̵.̵
评论 #18071762 未加载
peter_retief超过 6 年前
I hope the people who told me that python wasn&#x27;t good for large rollouts read this
amanzi超过 6 年前
They forgot step 1 - hire the creator of Python... But seriously, that&#x27;s an interesting post.
评论 #18071192 未加载
评论 #18070868 未加载
rawoke083600超过 6 年前
I would have thought that Go would be perfect for this sort of system-level-like programming ?
评论 #18071520 未加载
评论 #18069915 未加载
评论 #18069777 未加载
评论 #18070304 未加载
评论 #18071161 未加载
评论 #18072936 未加载
评论 #18073834 未加载
评论 #18069889 未加载