PEP 8 之歌

原文: PyCoder's Weekly - Issue #460

pycoder

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

A few links related to PEP 634, which will add structural pattern matching to Python via a new match/case statement: PEP 634 (Specification), PEP 635 (Motivation and Rationale), PEP 636 (Tutorial & Examples)

It turns out you can mutate a string in Python… sort of.

(是也乎:

困难的总是不时点

)

A great strategy to use when faced with a tricky data analysis problem is to reshape the dataset into a format that turns it into an easy problem. In this article, you’ll look at an example involving a simple calculation and extensive reshaping in pandas.

(是也乎:

数据分析并不难, 难就难在: 如何清洁原始数据, 以及事先形成偏见.

)

In this article, you’ll see some examples of cleaning text fields in a large data file and learn several strategies for efficiently cleaning unstructured text fields using Python and pandas.

(是也乎:

Pandas 也变成一个通用数据清洁机了..,..

)

Learn how to use the Rich CLI library’s new terminal dashboard feature.

(是也乎:

Terminal

基本上这种界面也只有影视作品中值得用, 现实中, 包含一点儿中文就全部错行了...

)

Learn how to build a robust and developer-friendly Python microservices infrastructure using gRPC and Kubernetes. You’ll also explore advanced topics such as interceptors and integration testing.

(是也乎:

gRPC

这个插图比较马虎...

)

探讨/吐糟

Discussions

Numerous people opine on Twitter about the new match/case statement expected in Python 3.10. While some folks welcome the powerful new syntax, others lament the syntax bloat and potential for confusion they see in the new feature.

(是也乎:

和 Erlang/Elixir 相比还差点儿意思

)

Discussion of last week’s acceptance of PEP 634.

文章/教程/嗯哼

Articles, Tutorials and Talks

A recent update to the Python cryptography library, which has started replacing some of its C code with Rust, stirred up some controversy among users and library maintainers.

(是也乎:

好久没有 Gentoo 出镜了

)

Brett is a Python core developer and he’s been working on a series of articles where he is unraveling the syntax of Python. His series is a fantastic resource for those wanting to learn how Python is structured and works at its core.REAL PYTHON podcast

(是也乎:

Unraveling

)

A songification of that most holiest of Python Enhancement Proposals.

(是也乎:

唉嘛都有专用歌曲了...

最神圣的... )

Learn how to sort data in a pandas DataFrame using the pandas sort functions sort_values() and sort_index().

When you use is to compare a value to a literal, such as the empty string '', you’ll see a SyntaxWarning that tells you not to use is that way, but your code may still work as intended. Learn why your code still works, and why you really should heed the warning.

In this step-by-step course, you’ll learn how to use PyQt layouts to arrange and manage the graphical components on your GUI applications. With the help of PyQt’s layout managers, you’ll be able to create polished and professional GUIs with minimal effort.

Learn some fun and useful Python “tricks” that can help you write cleaner and more maintainable code.

(是也乎:

既然是 Tricks 就不应该多用.

)

You need to speed up some Python code, but don’t know C and don’t have time to learn it. Enter Nim!

(是也乎:

叕一个 Python 运行加速器.

)

Learn how to add social authentication with GitHub and Twitter to a Flask application.

(是也乎:

印度弟兄的思考...

)

Here’s an article for the computer science-minded folks. Learn how to create an Earley parser from scratch in Python, which allows you to use any context-free grammar to parse a string and recover all of the parse trees that correspond to the grammar from the generated parse forest. Heady stuff, I know!

(是也乎:

如何从0开始构造一个解析器...

叕一个本科基础科目练习题解

)

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

自动 merge? 那 PR 的意义何在?

)

(是也乎:

对方言没办法的, 都是不可用的.

)

(是也乎:

叕一个可视化神经元分析器, 其实, 可视化对于生产并不重要, 只是在教学中有意义...

)

(是也乎:

Geographic

Q 的 )

📆🐍 活动/大会

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

(是也乎:

即便是线上的, 一样收费.

)

(是也乎:

Diamond

)

(是也乎:

反正很早都上 油管了, 随时可以 review, 当然, 这个随时, 随时了很多年都没刷光.

)

DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

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

Bilibili

)

PS:


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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

NN 4285

RPP


Comments


大妈的多重宇宙 - YouTube

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

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


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


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

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