GIL-Free CPython 来了
原文: PyCoder's Weekly - Issue #495
- 211020 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
- 211020 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- CPython No-GIL 分支
- GITHUB.COM/COLESBURY
- • Shared by Henry Schreiner
This is a proof-of-concept implementation of CPython that supports multithreading without the global interpreter lock (GIL), from Facebook research. An overview of the design is described in the Python Multithreading without the GIL Google doc. Also see the related discussions on LWN and Hacker News.
(是也乎:
活久见, 老爹当年的一闪年, 现在终于不在坚持.
)
- 为毛不应该直接调用 setup.py ?
- PAUL GANSSLE
“The setuptools team no longer wants to be in the business of providing a command line interface and is actively working to become just a library for building packages. What you should do instead depends on your use case, but if you want some basic rules of thumb, there is a table in the summary section.”
- Data Elixir: Data Science Newsletter
- DATA ELIXIRsponsor
Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web →
(是也乎:
数据科学中 Py 的地位其它语言当然在努力追上
)
- 在哪儿观察努力? 查阅 Python 核心开发人员活动
- ŁUKASZ LANGA
“One of the tasks given me by the Python Software Foundation as part of the Developer in Residence job was to look at the state of CPython as an active software development project. What are people working on? Which standard libraries require most work? Who are the active experts behind which libraries?”
- Python 3.10中很酷的新功能
- REAL PYTHON
- course
In this course, you’ll explore some of the coolest and most useful features in Python 3.10. You’ll appreciate more user-friendly error messages, learn about how you can handle complicated data structures with structural pattern matching, and explore new enhancements to Python’s type system.
(是也乎:
COOL 不 COOL 看用的人.
)
-
PyCascades 2022 CFP 在周日关闭 (Oct 24)
- PYCASCADES CONFERENCE
-
- PYTHON SOFTWARE FOUNDATION
-
- PYTHON SOFTWARE FOUNDATION
-
- PSYCOPG.ORG
-
- PYPY.ORG
(是也乎:
NB, 当年的一闪念, 今天变成独立大叉.
)
探讨/吐糟
Discussions
NIL
文章/教程/嗯哼
Articles, Tutorials and Talks
- 测试是不够的: 向 urllib3 添加类型提示后/案例研究
- SETH MICHAEL LARSON
“Since Python 3.5 was released in 2015 including PEP 484 and the typing module type hints have grown from a nice-to-have to an expectation for popular packages. To fulfill this expectation our team has committed to shipping type hints for the v2.0 milestone. What we didn’t realize is the amount of value we’d derive from this project in terms of code correctness.”
(是也乎:
嗯哼?这种基础库, 能不动就嫑动./ )
- 欢迎又一批 CPython Developer in Residence
- REAL PYTHON
- podcast
Earlier this year, the Python Software Foundation announced the creation of the Developer in Residence role. The first Visionary Sponsors of the PSF have provided funding for this new role for one year. What development responsibilities does this job address? This week on the show, Łukasz Langa talks about becoming the first CPython Developer in Residence.
(是也乎:
)
- Python 赋值表达式以及 Walrus/海象 运算符
- REAL PYTHON
- course
In this course, you’ll learn about assignment expressions and the walrus operator. The biggest change in Python 3.8 was the inclusion of the := operator, which you can use to assign variables in the middle of expressions. You’ll see several examples of how to take advantage of this new feature.
(是也乎:=
)
- Python XML解析器的路线图
- REAL PYTHON
In this tutorial, you’ll learn what XML parsers are available in Python and how to pick the right parsing model for your specific use case. You’ll explore Python’s built-in parsers as well as major third-party libraries.
(是也乎:
这世界上嘦 JAVA 存在, XML 就不会消亡.
)
- APT 如何折腾其绚烂的进度条
- JULIEN PALARD
“Today while running an apt full-upgrade I asked myself how apt does this nice progress bar stuck at the bottom line while still writing scrolling text.” Python example code included.
(是也乎:
不是, 再有趣的进度条能给最终用户带来什么提升? 只是运维看着舒服哈?
)
- 配置是 API, 而非 SDK
- HERNAN LOZANO
- • Shared by Hernan Lozano
Guidelines for config management in general and for Python apps in particular. Why “Configuration is just another API of your app” might be a good philosophy to adopt.
(是也乎:
SDK 开发工具, 不写东西用不了; 配置 现成接口, 可以直接使用.
)
- Python’s property() : 将托管属性添加到您的类
- REAL PYTHON
In this step-by-step tutorial, you’ll learn how to create managed attributes, also known as properties, using Python’s property() in your custom classes.
(是也乎:
)
- Pip vs Conda: 两种 包系统 的比较
- ITAMAR TURNER-TRAURING
“Python has two commonly used packaging systems, pip and Conda. Learn the differences between them so you can pick the right one for you.”
(是也乎:
硬盘够大, 项目部署时无所谓速度, 上 conda
)
- 在 Python 安全处置密码
- MARTIN HEINZ
- • Shared by Martin Heinz
Protect and secure your passwords and credentials in Python with help of these techniques and tips.
(是也乎:
注意, Medium 文章, 如果超过 free 限额就只能付费才看得到
)
- 理解 np.where()
- BEN COOK
The NumPy where() function is like a vectorized switch that you can use to combine two arrays.
(是也乎:
NumPy 这种数学梗密集作品, 每个函式都不简单...
)
-
- KRACEKUMAR.COM
-
functools.partial() 在 Django 更多用途
- ADAM JOHNSON
好物/妙品/...
Interesting Projects, Tools and Libraries, Projects & Code
- kubernetes-client: Kubernetes 的官方 Python 客户端库
- GITHUB.COM/KUBERNETES-CLIENT
(是也乎:
等等,官方? 也就是说 Ymal 还是恶心到人了? 准备用 Py 来替代?
)
- Lenia: Mathematical Life Forms Simulator
- GITHUB.COM/CHAKAZUL
(是也乎:
官方也提醒: 会很慢, 期望 M1max 可以流畅之?
)
- troposphere: 构建 AWS CloudFormation 描述
- GITHUB.COM/CLOUDTOOLS
(是也乎:
反正给程序看的东西, 一定值得用程序生成
)
- classyconf: 用于配置和代码分隔的 声明性/可扩展库
- GITHUB.COM/HERNANTZ
(是也乎:
反正就是不想多写代码, 又得保持可读性, 那么一组配置基本上可以完成主要声明了
)
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
- (CA, USA)
- October 25, 2021
-
⋅ Introduction to the Python Programming Language (In Persian)
- October 26, 2021
-
- October 26, 2021
-
⋅ Dominican Republic Python User Group
- October 26 to October 27, 2021
-
- October 27, 2021
-
- October 27, 2021
-
- October 27, 2021
-
- 2021 October 28 to October 31, 2021
-
- November 16 to November 17, 2021
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
(是也乎:
独创 logging + debug 模块
)
(是也乎:
老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:
)
PS:
PPS:
不觉中蟒周刊快译已经到了第9个年头
去年开始有小伙伴加入承担 pythonisa
周刊的翻译,
从来没提醒过, 可就这么默默坚持下来了...
问为什么:
[皱眉]每周新闻资讯 怎么能错过
看看有什么新东西
当有新的发现时:
what f**k 还能这样玩? 还有这东西?
每周开彩蛋[吃瓜]
无法同意更多
...
很多社区贡献看起来辛苦,
其实受益最多的,
就是主动承担者也.
好文笔,感叹号年度配额: 2/3
投稿/反馈邮箱:
askdama@googlegroups.com
(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)
ZoomQuiet/大妈
就是四处 是也乎,( ̄▽ ̄)
的那个大妈:
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
PyChina (订阅号: PyChinaOrg)
本地社区:
GDG珠海 (订阅号: GDG-ZhuHai)
TFUG珠海 (订阅号: ZH_TFUG)
Comments