Python 3.10RC 发布

原文: PyCoder's Weekly - Issue #485


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

Mistakes happen to everyone. But what do you do if you make a mistake when releasing a package to PyPI? Don’t panic! There are a number of things you can do to fix a bad release. This article walks you through several scenarios and suggested solutions.

End-to-end (E2E) testing is a crucial step in delivering high-quality software, but the ins and outs of E2E can be challenging. You often need multiple, separate services to talk to each other during tests, and coordinating this can be difficult. Learn some approaches for E2E test development and how the new Cornell Python package can help make your life easier.



问题在如何保证 Mock 和真实系统反应一致?


Analyze your Python apps’ performance by drilling into error traces with Datadog’s App Analytics to debug and optimize Python code. Trace requests end-to-end across web servers, databases, and services in your environment and start visualizing your apps’ performance with Datadog APM free →

In this tutorial, 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.



海象表达式, 关键问题是可计算的范畴... 真.自由的话, 就变成 JS 那种无限 函式嵌套了...



Are you a Django user? The Django Software Foundation wants to hear from you!


无论是不是 Django 用户, 都可以去填写...




Learn all about Rich and Textual in this Q&A thread with the libraries’ author. Ever wondered what Will thinks of the new pattern matching feature coming in Python 3.10, or whether plots will ever come to Rich or Textual? Find out here!


Articles, Tutorials and Talks

The Django Rest Framework (DRF) allows you to build REST APIs on top of Django. This article explores some recipes for various tasks in DRF taken from the author’s real-world experience.

Have you heard of FastAPI? An application programming interface is vital to make your software accessible to users across the internet. FastAPI is an excellent option for quickly creating a web API that implements best practices. This week on the Real Python Podcast, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects.


FastAPI 替代 Flask 变成新.Django 接替人选了..



NumPy has a built-in memory view feature that helps reduce memory usage for large arrays. But in some cases, memory views can cause higher memory usage, and even cause bugs by mutating data in unexpected ways. Learn how memory views work, what common issues are, and some takeaways to help you decide when memory views are a good choice.


毕竟底层还是有 C 代码...


In this step-by-step course, you’ll learn how to use the Python return statement when writing functions. Additionally, you’ll cover some good programming practices related to the use of return. With this knowledge, you’ll be able to write readable, robust, and maintainable functions in Python.





Ah, Django proxy models and the power they hold! Yet, the implementation aftermath can highlight a number of unwanted side-effects. Here’s a couple of tips when working with Django proxies that will make end-users grateful and developers sigh in relief.





Interesting Projects, Tools and Libraries, Projects & Code


嗯哼? Glitches, Joel 的神奇脑洞, 又将成功流行了?



e2e 测试太重要了, 可惜一直没什么很好的自动化测试框架, 俺是说 Ajax 之后, 之前软件都是 CLI 到 CLI 很容易模拟和测试...


用自己美丽的头像作项目 logo...



重构也不是银弹, 但是, 不妨碍形成这种错觉...


📆🐍 活动/大会

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



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


独创 logging + debug 模块



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




私人初体验, 现在 http/https 资源混用浏览器越来越傲娇了, 最好有工具可以统一迁移...





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


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

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

好文笔,感叹号年度配额: 2/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** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也: