蠎周刊(PyCoder)579

PyPI 被传唤 原文: PyCoder’s Weekly - Issue #579 230531 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230531 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, Python 的 .call() 方法:创建可调用实例 REAL PYTHON In this tutorial, you’ll learn what a callable is in Python and how to create callable instances using the .call() special method in your custom classes. You’ll also code several examples of practical use cases for callable instances in Python. (是也乎: ) 使用自定义属性对 Django 查询集进行排序 REDOWAN DELOWAR “Typically, Django allows sorting a queryset by any attribute on the model or related to it in either ascending or descending order. However, what if you need to sort the queryset following a custom sequence of attribute values?” Python Decorators and How to Use Them Effectively Python 装饰器以及如何有效地使用它们 TONIE VICTOR This article covers the importance and use of decorators in your code. It introduces you to both function and class decorators and helps you write your own. PyPI 被传唤 PYPI.ORG In March and April 2023, PyPI received three subpoenas for user data from the US Department of Justice. This blog post covers what was requested and how the PyPI is working to clarify what they retain and can make available in the future. See the associated Hacker News discussion. (是也乎: 美国司法部… 没被司法部关怀过的语言,不是世界级语言? ) ...

2023-05-31 · 4 min · 1844 words · ZoomQuiet

蠎周刊(PyCoder)578

为什么工程师需要无聊 原文: PyCoder’s Weekly - Issue #578 230524 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230524 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, ChatGPT: 您的个人 Python 编码导师 REAL PYTHON Large language models have gained popularity since OpenAI released ChatGPT. In this tutorial, you’ll learn how to use ChatGPT as your Python coding mentor. You’ll study a variety of use cases, learn how to interpret results, and learn to beware of incorrect and irrelevant responses. (是也乎: 不过, 随着使用费用的上升, 大家到最后发现, 还是找个退休程序猿来用更加划算? ) Pydantic 和 FastAPI 的未来 KENNEDY, COLVIN, RAMIREZ PODCAST This interview with Samuel Colvin from Pydantic and Sebastián Ramírez from FastAPI took place at PyCon 2023 and covers the changes to Pydantic as part of its 2.0 release along with the impacts that has on libraries built on top of it. (是也乎: Pydantic 作为一个通用数据类型校验器,真的很给力, 而 FastAPI 直接内置了这一模块, 可以说决心很大了… ) 使用属性向属性添加动态行为 RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão This article teaches you how to use properties to add dynamic behavior to your attributes. It covers the most common use cases for properties, how to use them, and shows examples of real-world usages of this feature. PyPI 暂停新注册 PYTHON.ORG Due to a large volume of traffic from malicious users, PyPI temporarily suspended new account and project registrations on May 20th. The suspension was lifted 30 hours later on May 21st. FastAPI 0.95.2 安全修复发布 TIANGOLO.COM 探讨/吐糟 Discussions ...

2023-05-24 · 4 min · 1972 words · ZoomQuiet

蠎周刊(PyCoder)577

上更快的 CPython 原文: PyCoder’s Weekly - Issue #577 230517 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230517 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, PyCon 上更快的 CPython JAKE EDGE This article summarizes the report the Faster CPython team gave at PyCon 2023. It gives information on PEP 659 Specializing Adaptive Interpreter and other performance improvements on the roadmap. (是也乎: Faster CPython 团队的两名成员是应 Guido van Rossum 的要求在微软组建的 … … 这不也是对 CRISC 系统的描述吗? 然后, 有各种吐糟, 不过, 有专人长期思考如何加速运行, 也是好事儿, 或是说开发语言社区成熟的一个标志? ) ...

2023-05-17 · 5 min · 2192 words · ZoomQuiet

蠎周刊(PyCoder)576

Mojo 来了… 原文: PyCoder’s Weekly - Issue #576 230510 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230510 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, SOLID 原则: 改进 Python 中的面向对象设计 REAL PYTHON In this tutorial, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable. (是也乎: DDD 吼了很多年, OOD 真没听说过… ) Mojo, a Superset of Python Mojo,Python 的超集 JEREMY HOWARD Mojo is a new programming language, which is a superset of Python. It aims to fix Python’s performance and deployment problems. (是也乎: 果然, 不可能不说这事儿的… 居然是在 JuliaCon2022 上爆出的,…. ) 发表 PyCon 2023 主题演讲 NED BATCHELDER This brief article describes Ned’s thinking as he was preparing to give the keynote to PyCon 2023. Links to his slides for the talk are included. Wagtail 5.0 发布 WAGTAIL.ORG (是也乎: 黑暗面的好处…. 这个梗儿用的好, 一个基于 Django 的 CMS 系统; ) North Bay Python 2023 提案征集 NORTHBAYPYTHON.ORG Django 安全版本已发布: 4.2.1、4.1.9 和 3.2.19 DJANGO SOFTWARE FOUNDATION PyGotham TV 2023 提案征集 PYGOTHAM.TV • Shared by Jon Banafato 探讨/吐糟 Discussions ...

2023-05-10 · 5 min · 2032 words · ZoomQuiet