原文: 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
- 你自动化的最重要的事情是什么?
(是也乎:
除了自动赚钱, 其它真心不值得自豪吧?
)
(是也乎:
讨论一点也不激烈...
想想也是, 如果 Python 基金会认同这点的话, 早就去开发自己的浏览器了.
)
文章,教程和嗯哼
Articles, Tutorials and Talks
- 如何用 Python Lambda 函式
- REAL PYTHON
- video
Learn about Python lambda functions and see how they compare with regular functions and how you can use them in accordance with best practices.
(是也乎:
其实, 最好是别用
)
- Starlette ~ 又快又脏的模拟服务
- MATT LAYMAN
- • Shared by Matt Layman
"Have you ever needed to mock out a third party service for use in a large testing environment? I recently did, and I used Starlette, a new async Python web framework, to do it. See what Starlette offers!"
- 用 Python 实现可视化 insider trading
- JAN L. SCHROEDER
"We use Python to visualize insider trading as reporting in SEC Form 4 filings. Our goal is find patterns to create signals for buy/sell decisions and general risk monitoring of investment portfolios."
- 用 openpyxl 在 Python 中编辑 Excel 电子表格
- REAL PYTHON
Learn how to handle spreadsheets in Python using the openpyxl package. You'll see how to manipulate Excel spreadsheets, extract information from spreadsheets, create simple or more complex spreadsheets, including adding styles, charts, and so on.
(是也乎:
被迫用 Excel 的人都是折翼天使...
)
- 用 Python 的 SMOTE 处理不平衡的数据集
- JUAN DE DIOS SANTOS
Use SMOTE and the Python package, imbalanced-learn, to bring harmony to an imbalanced dataset.
- 使用VP-Trees和OpenCV构建图像哈希搜索引擎
- ADRIAN ROSEBROCK
Learn how to build a scalable image hashing search engine using OpenCV, Python, and VP-Trees.
- Gunicorn WSGI 服务如何工作?
- REBECA SARAI
An overview of how the Gunicorn WSGI HTTP server works internally.
(是也乎:
Gunicorn 实在是 WSGI 首选服务容器
)
- 左递归 PEG 语法
- GUIDO VAN ROSSUM
Part 5 of Guido's series on PEG parsers.
- 用 Docker 和 GitLab 对 Django 应用通过持续部署到 DigitalOcean
- MICHAEL HERMAN
- • Shared by Michael Herman
(是也乎:
感觉首次见 gitlab 的软文...
)
- 面向数据的机器学习入门算法
- NATHAN PICCINI
- • Shared by Blair Heckel
(是也乎:
等等, 数据科学不包含 ML 的?
)
-
用 Python 进行 Alpha-Beta 修剪的 Minimax
- MINA KRIVOKUĆA
-
- NIKITA SOBOLEV
(是也乎:
除了情怀还能说什么?
)
好物
Interesting Projects, Tools and Libraries, Projects & Code
- rapidtables: 控制台的快速表格渲染
- GITHUB.COM/ALTTCH
(是也乎:
专注将字典对象, 变成表格 )
- aiomixcloud: 适用于 Python 和 Async IO 的 Mixcloud API 包装器
- GITHUB.COM/AMIKROP • Shared by Aristotelis Mikropoulos
(是也乎:
刚需, 混合云, 不如说 AWS 最小功能集, 为无缝迁移到其它云提前准备.
)
- drf-pretty-update: Django REST框架(DRF)可写嵌套字段
- GITHUB.COM/YEZYILOMO
- • Shared by Yezileli Ilomo
(是也乎:
叕是嵌套字段...
)
- vermin: 检测运行代码所需的最小 Python 版本
- GITHUB.COM/NETROMDK
(是也乎:
Why not 类型工具, 反正, Py2 是不应该判定出来的, P3 各个版本又没太大区分, 其它 PyPy/Cython 之类又没可以判定标准...
)
- cloud-detect: 猜测主机的云提供商
- GITHUB.COM/DGZLOPES
(是也乎:
云太多了, 以至可以自动判别了...
)
- supersqlite: 用于Python的Supercharged SQLite库
- GITHUB.COM/PLASTICITYAI
(是也乎:
高速将字典变成 md/rst 等等结构化文本中的表格
)
- darglint: 检查 Docstring 描述是否与定义匹配的 Linter
- GITHUB.COM/TERRENCEPREILLY
(是也乎:
良心之作 -> 自动检验文档字串中的声明和实际代码是否对等.
)
- portray: Python 实现无配置文档网络生成器
- TIMOTHYCROSLEY.GITHUB.IO
(是也乎:
叕一个 SSG, 并不真的无配置, 而且 theme 也不多...
)
- readevalprint/mini-django: 单文件 Django 项目
- GITHUB.COM/READEVALPRINT
(是也乎:
GCP only, 只是将 所有依赖的封装在 Docker 中, 暴露出一个控制注册脚本而已,
但是, 创意不错.
)
- TypedDjango: Type-Checking Stubs for Django
- GITHUB.COM
(是也乎:
立志义务为 Django 框架追加类型检查能力的组织....
)
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
- August 29 to September 1, 2019
- 墨西歌
-
- September 2 to September 7, 2019
- Bilbao,
- Spain
-
⋅ Melbourne Python Users Group, Australia
- Australia
- September 2, 2019
-
⋅ Dominican Republic Python User Group
- September 3, 2019
- 非洲
-
- September 4, 2019
- 德国
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
- 蟒营 Python 入门班
- 第3期
- 101camp3py
第3期已经上线, 为期6周, 190918 报名截止
(是也乎:
总是永远有人问这个问题... 当然, 这个问题任何一个技术社区都有人在问...
其实, 本质上并不是对应技术是否有什么能力, 而是相反...
)
Jobs:
必须 Pythonic 相关
...
是也乎
- 190828 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 190828 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.
NN 3753
Comments