Issue 483

给问题自动生成代码… 原文: PyCoder’s Weekly - Issue #483 210728 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210728 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python’s 集合: 专门数据类型自助餐 REAL PYTHON Python has a number of useful data types beyond the built-in lists, tuples, dicts, and sets. In this tutorial, you’ll learn all about the series of specialized container data types in the collections module from the Python standard library. Learning the collections module is a great way to level up your Python programming knowledge! (是也乎: ) 将 Scipy 迁移进 Meson 构建系统 RALF GOMMERS In accordance with PEP 632, distutils will be deprecated in Python 3.10 and in Python 3.12 it will be removed. This posed a big problem for SciPy, since it’s build system depends on NumPy’s distutils module — an extension of Python’s built-in distutils. The SciPy maintainers set out to find a new build system and settled on Meson, which solves a number of build issues and even scores a 4x speed-up on build times! Python’s Operator 模块的未知功能 MARTIN HEINZ • Shared by Martin Heinz Have you heard of Python’s operator module? It includes functions for common operators, including mathematical operators like +, -, *, and /, and well as operators for getting items from dictionaries and accessing object attributes. The operator module might seem confusing at first glance. This article explores why it exists, what benefits you get from it, and when it makes sense to use it in your code. Python Software Foundation Fellow 2021/Q2 成员 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-07-28 · 4 min · 1713 words · ZoomQuiet

Issue 482

Python 3.11 新功能 原文: PyCoder’s Weekly - Issue #482 210721 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210721 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用Fastapi构建Python Web APIs REAL PYTHON In this guide, written by FastAPI creator Sebastián Ramírez, you’ll learn the main concepts of FastAPI and how to use it to quickly create web APIs that implement best practices by default. By the end of it, you will be able to start creating production-ready web APIs. (是也乎: ) 幕后/ Python导入系统的工作原理 VICTOR SKVORTSOV Importing a Python module is probably one of the most used language features. But Python’s import system remains a mystery to many Python developers, even folks with years of experience. This in-depth article explores how the import system works from the top down. You’ll learn everything from the difference is between absolute and relative imports to how Python searches for modules and packages and resolves naming conflicts. 全职 CPYTHON 开发商周报 ŁUKASZ LANGA After years of fundraising efforts, the Python Software Foundation finally hired their first CPython Developer-In-Residence. Łukasz Langa reports on what he accomplished during his first week on the job, how he’s finding a balance between the various tasks required of him, and what his plans are for next week. He’s included a full detailed log of everything accomplished with links to GitHub issues and pull requests. (是也乎: Ł <- 怎么念? 7 ? ) Python 3.11 新功能 PYTHON.ORG Python 3.10 is still in beta, but work on Python 3.11 has already begun. Big changes include some major improvements to tracebacks as well as a new cube root function in the math module. (是也乎: 嗯哼, 先用 Py3.11 重写 PyPI ? ) Coverage 6.0 Beta 1 发布 NED BATCHELDER 探讨/吐糟 Discussions ...

2021-07-21 · 4 min · 1658 words · ZoomQuiet

Issue 481

WASM 支持下跑在浏览器中的 Jupyter 原文: PyCoder’s Weekly - Issue #481 210714 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210714 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 数据库事务太多 HAKI BENITA Learn how a bug was born — one that resulted in hundreds of users of an application getting a notification that they had been paid when in fact they had not! In this story, Haki Benita shares how a slip-up with Django signals caused him and his team quite a headache. You’ll learn how the application was architected, how the bug occurred, and how they fixed it, along with some other remedies to consider. (是也乎: 这得怪 SQL, 以及框架的隔离… ) 在 2021 Python 打包状态 BASTIAN VENTHUR opinion What does Python packaging look like in 2021? What are the best tools to use? In this article, you’ll see one developer’s opinion about the state of Python packaging in 2021, what tools they are using the most often, and some thoughts on how the situation can continue to improve moving forward. (是也乎: 低产作者…知名作品: Creating Beautiful Github Streaks | Bastian Venthur’s Blog ) Python 新闻: 2021 年 6 月有什么新变化? REAL PYTHON June 2021 was full of notable events in the Python world! In this article, you’ll get caught up on what’s been happening with Python during this past month, including some changes at the Python Software Foundation and the announcement of a new recipient of the PSF Fiscal Sponsorship Program. (是也乎: ) Python 3.10.0b4 可用 CPYTHON DEV BLOG This is the last beta release, which means the next release will be the first release candidate. Łukasz Langa -> 首位 CPython 筑地开发人员 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions NULL ...

2021-07-14 · 4 min · 1709 words · ZoomQuiet

Issue 480

如何在 Python 中处理 JWT 原文: PyCoder’s Weekly - Issue #480 210707 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210707 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 的类型类 NIKITA SOBOLEV • Shared by Nikita Sobolev Sometimes you need to change the behavior of a function based on the type of argument passed to it. This is a classic example of polymorphism in programming. In this article, you’ll learn how this is typically done in Python, compare that to polymorphism in other languages, and see how the new classes library can make the whole process easier. Django REST 框架中/自定义权限类 TESTDRIVEN.IO • Shared by Špela Giacomelli (aka GirlLovesToCode) One of the great things about Django REST Framework (DRF) is how easy it is to be productive with the built-in API views and permission classes. But sometimes you need a bit more control than the built-in objects allow. This article walks you through how to create and use custom permission classes in DRF so that you can have complete control over how permissions work in your REST API. (是也乎: 这种想绕过框架的尝试, 多数都没能坚持多久… ) Monitor Your Python Applications’ Performance in Real Time with Datadog APM DATADOG sponsor Pinpoint hard-to-reproduce problems in your production code without affecting your app’s performance with Datadog’s Continuous Profiler. Locate which functions (or lines of code) consume the most resources, such as CPU and memory and optimize for a better app experience. Try Datadog APM free → Python 计数器: Pythonic 方式计数对象 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use Python’s Counter to count several repeated objects at once. You’ll also learn how to use Counter objects to enhance other computations that you do in Python. Django Security 发布: 3.2.5 and 3.1.13 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-07-07 · 4 min · 1732 words · ZoomQuiet