跳转至

591-600

Issue #591 Polars, Immortal Objects, Playwright, and More Aug. 22, 2023

Cite

Introducing Immortal Objects for Python
This article explains immortal objects (PEP 683) which are excluded from garbage collection. This causes performance and shared memory improvements for large architectures. ENGINEERING AT META

文章里看起来最大的目的是减少内存使用,不朽对象好多属性都不需要了,pep是https://peps.python.org/pep-0683/,应该是py3.12实现

Cite

Avoiding Silent Failures: Best Practices for Error Handling
The Zen of Python famously states, “Errors should never pass silently.” But just what does that mean, and what should you do instead? BOB BELDERBOS

全文就一句话,别except然后pass了

Cite

PythonMonkey: JavaScript Engine Embedded in Python
GITHUB.COM/DISTRIBUTIVE-NETWORK

from pythonmonkey import eval as js_eval

js_eval("console.log")('hello, world')
从JS里执行Python,从Python里执行JS,倒腾来倒腾去翻来覆去的玩

Issue #592 Concurrency, Arguments, Flask, and More Aug. 29, 2023

Cite

aquarel: Styling Matplotlib Made Easy
GITHUB.COM/LGIENAPP

看起来是给Matplotlibs添加了一些主题

写法和Flask及其类似,适用于资源受限的环境下,可以用MicroPython来跑

Issue #593 Wordle Clone, Polar Histograms, Protocol Buffers, and More Sept. 5, 2023

Cite

Heaps in Python
Learn about both the min heap and max heap data structures using Python. SHIVALI BHADANIYA • Shared by cody

浅显易懂没有用

Issue #594 Genetic Algorithms, Beautiful QR Codes, Mr Null, and More Sept. 12, 2023

Cite

What Is Wrong With TOML?
Some YAML people talk about why TOML is too limited. HITCHDEV.COM

说了TOML的一些弊端,介绍了 https://github.com/crdoconnor/strictyaml

Issue #595 Inheritance, CPython Release Process, Folium, and More Sept. 19, 2023

Cite

Visualizing the CPython Release Process
This blog post covers how the release process of CPython works and includes a diagram documenting each step. It also highlights supply chain threat spots. SETH LARSON

介绍了CPython的发布流程

SC拒绝的理由

我们在这里没有看到一个强有力的支持论据,尽管有时我们希望我们可以拥有这个,因为它乍一看很简单。实际上,这似乎并不那么简单

Cite

words-tui: A TUI App for Daily Writing
GITHUB.COM/ANZE3DB

在终端内写作的工具,纯终端,太极客了

Issue #596 SOLID OOP, Code Metrics, Speed Up Your Code, and More Sept. 26, 2023

PEP 684 – A Per-Interpreter GIL在3.12里实现了,是C-API,普通用户感觉不到

Cite

How to Catch Multiple Exceptions in Python
In this how-to tutorial, you’ll learn different ways of catching multiple Python exceptions. You’ll review the standard way of using a tuple in the except clause, but also expand your knowledge by exploring some other techniques, such as suppressing exceptions and using exception groups. REAL PYTHON

一些关于捕获异常的处理方式

Cite

mpire: Easy, but Faster Multiprocessing
GITHUB.COM/SYBRENJANSEN

一个更加优雅,功能更加强大的多进程库,可以用来替代multiprocessing,主打的是更快

Issue #597 Special Python 3.12 Release Edition! Oct. 3, 2023

Cite

Python 3.12: Cool New Features for You to Try
In this tutorial, you’ll learn about the new features in Python 3.12. You’ll explore how the new release extends the better error messages and faster code execution found in the previous version, and you’ll try out the improvements to f-strings and type variable syntax. REAL PYTHON

3.12中一些新增的功能,本期基本都是关于3.12新内容的文章

Cite

Python 3.12: Static Typing Improvements
In this tutorial, you’ll see the new static typing features in Python 3.12. You’ll learn about the new syntax for type variables, making generics simpler to define. You’ll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments. REAL PYTHON

静态类型检查

Cite

Python 3.12: Subinterpreters
In this tutorial, you’ll see one of the new features of Python 3.12 and a proposed change to Python 3.13, addressing how subinterpreters work in the CPython program. The changes are described in PEP 684 and PEP 554. REAL PYTHON

子解释器的一些简介

Cite

Python 3.12.0 Released
PYTHON.ORG

3.12发布了

Cite

upiano: A Piano in Your Terminal
GITHUB.COM/ELIASDORNELES

在终端里的键盘

Issue #598 Tuples, CLI Tools, 3.12, and More Oct. 10, 2023

Cite

Python 3.12: What Didn’t Make the Headlines
There has been plenty of coverage about the changes in Python 3.12, this article tries to show what fell through the cracks. It talks about performance, pathlib improvements, and a few other changes. BITE CODE

一些简介,还推荐了一下 https://realpython.com/python312-typing/

Cite

PSF Hiring a Part Time Django Developer
PYTHON SOFTWARE FOUNDATION

1

Cite

Flask 3.0.0 Released
PALLETSPROJECTS.COM

看起来也没有什么大的更新,怎么版本号就直接上3.0了

Cite

CardStock: Cross-Platform GUI Building Tool
GITHUB.COM/BENJIE-GIT • Shared by Mike McLeod

看起来是拿wx开发的

Issue #599 Sorting Unicode, Functools, Payments, and More Oct. 17, 2023

Cite

When I Met Guido Van Rossum
This personal blog post by Adarsh recounts his conversations with Guido at PyCasades back in the spring. They talked about the how to get better at Python and what it takes to become a core developer. ADARSH DIVAKARAN

跟Guido谈话的一些记录

Issue #600 FastAPI Middleware, OOP, 3.12 Performance, and More Oct. 24, 2023

Cite

Building Custom Middleware in FastAPI
Middleware in a web stack framework is able to intercept all requests allowing you to write common request processing code across all your views. This article shows you how to write middleware for FastAPI. PRINCEWILL INYANG

FastAPI中间件的使用

Cite

We Have to Talk About Flask
The most recent release of Flask and Werkzeug have introduced backwardly incompatible changes that are effecting popular add-ons. Miguel writes about how this is a common occurrence and why it keeps happening. MIGUEL GRINBERG

吐槽了一下FLask的更新不向前兼容

Cite

Progress on No-GIL CPython
This post sums up the progress and thinking on the no-GIL work in Python. It summarizes some of the PEPs involved as well as active conversations in the discussion groups. JAKE EDGE

一些总结和讨论,实现no-GIL还是一项巨大的挑战

评论