Python 3.11 新特性来了...

原文: PyCoder's Weekly - Issue #516

pycoder

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

How to write user-friendly Command Line Interface applications and an overview of several of the popular CLI libraries: argparse, Click, Typer, Docopt, and Fire.

(是也乎:

XIAOXU

小高, 一位人在荷兰的 MM...

)

Cython is a superset of of Python designed to give C-like performance. Ever wanted to learn the basics? This article shows you how to get started.

Scout APM: Built for Developers, By Developers Scout APM is an application performance monitoring tool designed to help developers find and fix performance issues quickly. Scout will tie bottlenecks to source code so you can quickly pinpoint and resolve performance abnormalities with ease. Give Scout a try with a 14-day free trial today → SCOUT APMSPONSOR

Python 3.11 will be released in October 2022. This article explores the more precise error messages now available in the latest alpha release.

(是也乎:

3.11

带来更好的 error 信息

trackback

)


探讨/吐糟

Discussions

(是也乎:

Yes and Not

毕竟 Python 不仅仅能组织测试, 一但上手, 就忍不住折腾越来越多的东西, 慢慢的, 就不是自动化测试, 而是自动化编程了...

)

(是也乎:

书里?

)


文章/教程/嗯哼

Articles, Tutorials and Talks

Python has dozens of built-in functions, the standard library has hundreds more, and then third-party libraries make the whole list unknowable. How do you know what to learn early on? This article highlights the important functions every developer should know.

(是也乎:

每年都有唠叨, 其实所有内建函式都应该记清楚咯, 这毕竟是 老爹 当年千挑万选出来最实用的工具函式了... 不多, 就25 个:

应该都知道的:

print
len
str
int
float
list
tuple
dict
set
range

可能不知道的:

sum
enumerate
zip
bool
reversed
sorted
min
max
any
all

推荐得知道的:

dir
vars
breakpoint
type
help

)

If you try to mutate a sequence while traversing through it, Python doesn’t complain, but that doesn’t mean it did what you want. This article explores the problems of modifying iterables and how to work around it.

What are those weird extra files for and what do you do about them? This article explains pyc files, where they live, and how to ignore them in your development environment, and how to clean up after them.

(是也乎:

这真的是一个被无视的好问题...

)

In this video course, you’ll explore the Fibonacci sequence in Python, which serves as an invaluable springboard into the world of recursion, and learn how to optimize recursive algorithms in the process.

(是也乎:

Fibonacci

)

You want to protect your users’ privacy, right? The goal is noble and users demand it, but how do you do it? This article, looks at some areas that improve the security of your application.

15 language-agnostic, tips on REST API design, including: good naming conventions, how to specify dates, versioned APIs, authentication keys, pagination, and when to use which HTTP methods.

Different programming languages use different ways of passing arguments. By value? By reference? What does Python do? Pass-by-assignment.

Counting several repeated objects at once is a common problem in programming. Python offers a bunch of tools and techniques you can use to approach this problem. However, Python’s collections.Counter class provides a clean, efficient, and Pythonic solution.

(是也乎:

Counter

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

之前介绍过...

)

(是也乎:

FastAPI 宇宙开始形成...

)

(是也乎:

pytermgui

淦...关键是窗口可以自然拖动/拉伸的...

)

(是也乎:

skillmap

使用 .toml 来表述, 基于 Graphviz 来绘制, 走心了

)

(是也乎:

WhyProfiler

这种可视化用心了, 不过, 代码一长也一样并没什么意义...

)


📆🐍 活动/大会

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

⋅ Heidelberg Python Meetup March 16, 2022

(是也乎:

ThoughtWorks

和当年 ThoughtWorks 一样, 将公司开放日作成一门生意了...

)


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



自怼圈/年度番新

DU22.8
关于 ~ DebugUself with DAMA ;-)
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:


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


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

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 扫描预约入群, 学员每满 42 人即启动新一期训练营 ;-)
  • 101camp22.7
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->