小红花·文摘
  • 首页
  • 广场
  • 排行榜🏆
  • 直播
  • FAQ
Dify.AI
沉浸式翻译 immersive translate
PEP 822:去缩进多行字符串(d-string)

PEP 822 提议在 Python 中增加一种新的多行字符串前缀“d”,用于自动去除缩进,从而提高代码可读性,简化多行字符串的书写,并提升运行效率。

PEP 822:去缩进多行字符串(d-string)

Newest Python PEPs
Newest Python PEPs · 2026-01-05T00:00:00Z

Replace type and module slots with a new, more type-safe structure that allows adding new slots in a more forward-compatible way.

PEP 820: PySlot: Unified slot system for the C API

Newest Python PEPs
Newest Python PEPs · 2025-12-19T00:00:00Z

This PEP proposes introducing JSON encoded core metadata and wheel file format metadata files in Python packages. Python package metadata (“core metadata”) was first defined in PEP 241 to use RFC...

PEP 819: JSON Package Metadata

Newest Python PEPs
Newest Python PEPs · 2025-12-18T00:00:00Z
PEP 815:弃用 ``RECORD.jws`` 和 ``RECORD.p7s``

该PEP弃用了RECORD.jws和RECORD.p7s文件,因缺乏工具支持无法提供预期的安全性。用户应参考托管的证明,而非这两个几乎未使用的文件。

PEP 815:弃用 ``RECORD.jws`` 和 ``RECORD.p7s``

Newest Python PEPs
Newest Python PEPs · 2025-12-04T00:00:00Z
PEP 814:添加 frozendict 内置类型

frozendict是一种新的不可变字典类型,旨在防止意外修改,适用于CPython标准库和第三方维护者。它支持类似字典的构造API,保持插入顺序,并支持迭代和哈希。frozendict的哈希值和相等性不受项的顺序影响,并可使用标准类型注解。

PEP 814:添加 frozendict 内置类型

Newest Python PEPs
Newest Python PEPs · 2025-11-12T00:00:00Z

This PEP outlines the expected support for WASI by CPython. It contains enough details to know what WASI and WASI SDK version is expected to be supported for any release of CPython while official...

PEP 816: WASI Support

Newest Python PEPs
Newest Python PEPs · 2025-11-05T00:00:00Z

This PEP proposes formalizing the membership and responsibilities policies of the Python Security Response Team (PSRT). The PSRT is a “highly trusted cabal of Python developers” which handles...

PEP 811: Defining Python Security Response Team membership and responsibilities

Newest Python PEPs
Newest Python PEPs · 2025-10-22T00:00:00Z
PEP 8107:2026年任期指导委员会选举

本文介绍了2025年Python指导委员会选举的时间安排,投票时间为2025年11月28日至12月12日,提名时间为11月10日至24日,所有活跃的Python核心团队成员均可投票。

PEP 8107:2026年任期指导委员会选举

Newest Python PEPs
Newest Python PEPs · 2025-10-21T00:00:00Z
第703期:PEP 8、Python 3.14中的错误信息、splitlines()及更多内容(2025年10月7日)

PEP 8是Python的编码风格指南,但常被忽视。Python 3.14改进了错误信息,帮助开发者识别常见错误。文章还讨论了splitlines()方法的优势,以及Python社区的最新动态和活动。

第703期:PEP 8、Python 3.14中的错误信息、splitlines()及更多内容(2025年10月7日)

PyCoder’s Weekly
PyCoder’s Weekly · 2025-10-07T19:30:00Z
PEP 810:显式懒加载导入

PEP 810 提出了显式懒加载导入语法,允许开发者标记特定导入为懒加载,从而延迟模块加载,减少启动时间和内存使用,特别适用于命令行工具和大型应用程序。该方法保持向后兼容性,确保现有导入方式不变,帮助开发者更好地管理依赖关系,提升性能。

PEP 810:显式懒加载导入

Newest Python PEPs
Newest Python PEPs · 2025-10-02T00:00:00Z

This PEP proposes a standard mechanism through which arbitrary Python package indices can support “Trusted Publishing,” a misuse-resistant credential exchange scheme already implemented by the...

PEP 807: Index support for Trusted Publishing

Newest Python PEPs
Newest Python PEPs · 2025-09-19T00:00:00Z

The Stable ABI as abi3 can no longer be preserved, and requires replacement. abi2026 will be the first replacement, providing resolution of current known incompatibilities, with planned retirement...

PEP 809: Stable ABI for the Future

Newest Python PEPs
Newest Python PEPs · 2025-09-19T00:00:00Z

This PEP relaxes the constraint on dynamic metadata listed in the [project] section in pyproject.toml. It is now permitted to define a static portion of a dynamic metadata field in the [project]...

PEP 808: Including static values in dynamic project metadata

Newest Python PEPs
Newest Python PEPs · 2025-09-19T00:00:00Z

Python allows the with and async with statements to handle multiple context managers in a single statement, so long as they are all respectively synchronous or asynchronous. When mixing...

PEP 806: Mixed sync/async context managers with precise async marking

Newest Python PEPs
Newest Python PEPs · 2025-09-05T00:00:00Z

This PEP specifies a name mapping mechanism that allows packaging tools to map external dependency identifiers (as introduced in PEP 725) to their counterparts in other package repositories.

PEP 804: An external dependency registry and name mapping mechanism

Newest Python PEPs
Newest Python PEPs · 2025-09-03T00:00:00Z

Version 3.15 of the Stable ABI will be compatible with both free-threaded and GIL-enabled builds. To allow this, the PyObject internal structure and related APIs will be removed from version 3.15...

PEP 803: Stable ABI for Free-Threaded Builds

Newest Python PEPs
Newest Python PEPs · 2025-08-19T00:00:00Z
PEP 802:空集合的显示语法

PEP 802 提议使用 {/} 表示空集合,旨在改善可教性并提供文化中立的表示法。当前空集合只能通过 set() 创建,可能对初学者造成困惑。新语法将改为 '{/}',不影响现有功能,文档将更新以推广新语法。

PEP 802:空集合的显示语法

Newest Python PEPs
Newest Python PEPs · 2025-08-08T00:00:00Z

To analyze Python programs precisely, type checkers need to know when two classes can and cannot have a common child class. However, the information necessary to determine this is not currently...

PEP 800: Disjoint bases in the type system

Newest Python PEPs
Newest Python PEPs · 2025-07-21T00:00:00Z

This PEP proposes the creation of a new standard library module named profiling to organize Python’s built-in profiling tools under a single, coherent namespace.

PEP 799: A dedicated ``profiling`` package for organizing Python profiling tools

Newest Python PEPs
Newest Python PEPs · 2025-07-21T00:00:00Z
PEP 798:推导中的解包

PEP 798 提议在列表、集合和字典推导中支持解包语法(*和**),以简化多个可迭代对象的组合,提高代码的简洁性和可读性,适用于同步和异步推导。

PEP 798:推导中的解包

Newest Python PEPs
Newest Python PEPs · 2025-07-19T00:00:00Z
  • <<
  • <
  • 1 (current)
  • 2
  • 3
  • >
  • >>
👤 个人中心
在公众号发送验证码完成验证
登录验证
在本设备完成一次验证即可继续使用

完成下面两步后,将自动完成登录并继续当前操作。

1 关注公众号
小红花技术领袖公众号二维码
小红花技术领袖
如果当前 App 无法识别二维码,请在微信搜索并关注该公众号
2 发送验证码
在公众号对话中发送下面 4 位验证码
小红花技术领袖俱乐部
小红花·文摘:汇聚分发优质内容
小红花技术领袖俱乐部
Copyright © 2021-
粤ICP备2022094092号-1
公众号 小红花技术领袖俱乐部公众号二维码
视频号 小红花技术领袖俱乐部视频号二维码