Issue 383
原文: PyCoder’s Weekly - Issue #383 您的 CPython 源代码指南 REAL PYTHON In this detailed Python tutorial, you’ll explore the CPython source code. By following this step-by-step walkthrough, you’ll take a deep dive into how the CPython compiler works and how your Python code gets executed. (是也乎: 结合多年前的源代码鉴赏就知道, 源代码, 想看一定能看懂, 就好比, 建筑师通过复杂计算/设计/思考/施工, 完成的建筑, 虽然无法简单的透视一切, 但是, 依然可以通过各种行为, 快速理解真正的设计点是什么… ) 函式重构为多个退出点 MARTIJN FAASSEN “It’s sometimes claimed that not only should a function have a single entry point, but that it should also have a single exit. One could argue such from sense of mathematical purity. But unless you work in a programming language that combines mathematical purity with convenience [… ] that point seems moot to me.” (是也乎: 良心经验, 多退出点, 也是俺写代码时, 经常干的事儿, 但是, 从没完备思考过, 为什么, 以及有什么问题和好处… ) Python 3 自动更新 PY3READINESS.ORG This is an automated Python 3 support table for the most popular packages. 360 out of the 360 most downloaded packages on PyPI now support Python 3. (是也乎: 不是俺敏感哪, 这批包和 360 真的没什么关联嘛? ) 到时候摆脱 Python 2 NCSC.GOV.UK “Don’t constrict yourself, Python 2 slithers off into the sunset in 2020.” (是也乎: 放心, 有的场景中, Python 1.* 都在用呢 ) Onelinerizer: 将Python 代码重写为单行程序 ONELINERIZER.COM Fun! (是也乎: 说是任何程序哈… ) 讨论 Discussions ...