Python 3.10RC 发布

原文: PyCoder's Weekly - Issue #485

pycoder

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

(是也乎:

E2E

问题在如何保证 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.

(是也乎:

Assignment

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

Walrus

)

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

(是也乎:

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

)


探讨/吐糟

Discussions

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 接替人选了..

FastAPI

)

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.

(是也乎:

return

万物皆可返回...

)

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 很容易模拟和测试...

cornell

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

)

(是也乎:

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

)


📆🐍 活动/大会

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

NIL


DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

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

Bilibili

)

(是也乎:

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

)


PS:

PPS:

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

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

问为什么:

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

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


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

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

任何问题

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

-->