Twisted 22.1.0 发布...

原文: PyCoder's Weekly - Issue #512


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

Interesting approach to keeping documentation and code in sync: introspecting the code to figure out what needs to be documented, then parsing the documentation to see if each item has been covered.

How often have you thought about your Developer Experience (DX)? How do you improve your workflow, find documentation, and simplify code formatting? This week on the show, Adam Johnson is here to talk about his new book, “Boost Your Django DX.”



UX 重要, 还是 DX 重要?


In this guided tutorial, you’ll learn how to manipulate ZIP files using Python’s zipfile module from the standard library. Through hands-on examples, you’ll learn how to read, write, compress, and extract files from your ZIP files quickly.




This PEP introduces a simple and intuitive way to annotate methods that return an instance of their class. This behaves the same as the TypeVar-based approach specified in PEP 484 but is more concise and easier to follow. Related Twitter thread by core dev Raymond Hettinger.

Twisted, the event framework for internet applications, has announced the release of 22.1.0. Mainly a bugfix release.


淦.... 还在稳定升级, 超长寿 巨型模块... )

Related discussion on Hacker News.


淦...够卷的... 这是想用




Are type-hints overused? Discussion on if sometimes they’re too much.

From mouse-wiggling scripts to make Teams look active to RNC automation.





Articles, Tutorials and Talks

“These PEPs are a great way of getting the freshest info about what might be included in the upcoming Python releases. So, in this article we will go over all the proposals that are going to bring some exciting new Python features in a near future!”

A beginner-friendly guide to the K-Nearest Neighbor algorithm implemented in Python using Scikit-Learn. The tutorial assumes no prior knowledge of machine learning and guides through developing a classifier, evaluating its performance, and hyper-parameter tuning.

Learn how to use Python’s all() function to check if all the items in an iterable are truthy. You’ll also code various examples that showcase a few interesting use cases of all() and highlight how you can use this function in Python.


all )

“The ProcessPoolExecutor class in Python can be used to check if multiple numbers are prime at the same time. This can dramatically speed-up your program compared to checking if numbers are prime, one-by-one.”

“Knowing what to test requires some experience in knowing what can go wrong.” Peter describes testing with a Data Scientist’s perspective.

Along with nominal typing, Protocol classes now allow you to take advantage of structural subyping in Python. This post explores that.

Learn how to serialize and deserialize data in Python with the pickle module, including working with serialization in Pandas.


除非对象非常非常固定, 否则, 能序列化到数据库中, 是最稳的;


Introduction to slicing in Python, covers slices, negative indexes, slice(), and how to make your own classes slice-able.

A multi-part guide to using logging in Python. The fundamental concepts are discussed and illustrated with simple examples.


魔鬼在细节 )

“Learn the ins and outs of comparison operator chaining, and especially the cases you should avoid.”


Interesting Projects, Tools and Libraries, Projects & Code


DRF 作弊条...





终于有个支持亚洲文字的 OCR 了...




youtube-dl 之后, 叕一个想彻底解决 视频下载问题的工具...




anti-spam 叕一作品



逼疯 Musk 的系统开源了?



📆🐍 活动/大会

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


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




去年开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...


[皱眉]每周新闻资讯 怎么能错过 
    what f**k 还能这样玩? 还有这东西?

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.

好文笔,感叹号年度配额: 1/3


(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)


大妈的多重宇宙 - YouTube

点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

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

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


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