GIL-Free CPython 来了

原文: PyCoder's Weekly - Issue #495

pycoder

  • 211020 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
  • 211020 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

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.

(是也乎:

活久见, 老爹当年的一闪年, 现在终于不在坚持.

)

“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 的地位其它语言当然在努力追上

)

“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?”

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 看用的人.

)

(是也乎:

NB, 当年的一闪念, 今天变成独立大叉.

)


探讨/吐糟

Discussions

NIL


文章/教程/嗯哼

Articles, Tutorials and Talks

“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.”

(是也乎:

嗯哼?这种基础库, 能不动就嫑动./ )

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.

(是也乎:

CPython

)

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.

(是也乎:=

Walrus

)

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 就不会消亡.

Parsers

)

“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.

(是也乎:

不是, 再有趣的进度条能给最终用户带来什么提升? 只是运维看着舒服哈?

)

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 开发工具, 不写东西用不了; 配置 现成接口, 可以直接使用.

)

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.

(是也乎:

property

)

“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

)

Protect and secure your passwords and credentials in Python with help of these techniques and tips.

(是也乎:

注意, Medium 文章, 如果超过 free 限额就只能付费才看得到

)

The NumPy where() function is like a vectorized switch that you can use to combine two arrays.

(是也乎:

NumPy 这种数学梗密集作品, 每个函式都不简单...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

等等,官方? 也就是说 Ymal 还是恶心到人了? 准备用 Py 来替代?

)

(是也乎:

Lenia

官方也提醒: 会很慢, 期望 M1max 可以流畅之?

)

(是也乎:

反正给程序看的东西, 一定值得用程序生成

)

(是也乎:

反正就是不想多写代码, 又得保持可读性, 那么一组配置基本上可以完成主要声明了

)


📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

(是也乎:

独创 logging + debug 模块

)

(是也乎:

老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:

Bilibili

)


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


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->