Twisted 22.1.0 发布...

原文: PyCoder's Weekly - Issue #512

pycoder

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

(是也乎:

PODCAST

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.

(是也乎:

zipfile

)

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.

(是也乎:

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

)


探讨/吐糟

Discussions

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 作弊条...

CDRF

)

(是也乎:

PaddleOCR

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

CKJ

)

(是也乎:

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

)

(是也乎:

Spammer

anti-spam 叕一作品

)

(是也乎:

逼疯 Musk 的系统开源了?

notify

)


📆🐍 活动/大会

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


DAMA

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


PS:

PPS:

不觉中蟒周刊快译已经到了第10个年头

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

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

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


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->