注意: 虽然 JavaScript 对于本网站不是必需的,但您与内容的交互将会受到限制。请启用 JavaScript 以获得完整体验。

Python 3.12.0a1

发布日期: 2022 年 10 月 25 日

这是 Python 3.12 的早期开发者预览版

与 3.11 相比,3.12 系列的主要新特性

Python 3.12 仍在开发中。此版本 3.12.0a1 是计划的七个 alpha 版本中的第一个。

Alpha 版本的目的是为了更容易地测试新特性和错误修复的当前状态,并测试发布过程。

在 alpha 阶段,特性可能会在 beta 阶段开始之前(2023-05-08)添加,并且如有必要,可能会在候选发布阶段(2023-07-31)之前进行修改或删除。请记住,这是一个预览版本,建议在生产环境中使用。

Python 3.12 的许多新特性仍在计划和编写中。到目前为止,新的主要特性和变化包括

  • 根据 PEP 623,删除了 unicode 对象 C 实现中已弃用的 wstrwstr_length 成员。

  • unittest 模块中,删除了许多长期弃用的方法和类。(它们自 Python 3.1 或 3.2 起就被弃用了)。

  • 已删除已弃用的 smtpd 模块。

  • 删除了许多其他旧的、损坏的和弃用的函数、类和方法。

  • (嘿,核心开发人员朋友, 如果您发现此列表中缺少您认为重要的特性,请 告知 Thomas。)

Python 3.12 的下一个预发布版本将是 3.12.0a2,目前计划于 2022-11-14 发布。

更多资源

现在来点完全不同的东西

这不是我希望写的那首诗

This is not the poem that I had hoped to write
when I sat at my desk and the page was white.
You see, there were other words that Id had in mind,
yet this is what I leave behind.

I thought it was a poem to eradicate war;
one of such power, it would heal all the sores
of a world torn apart by conflict and schism.
But it isnt.

Lovers, Id imagined, would quote from it daily,
Mothers would sing it to soothe crying babies.
And whole generations would be given new hope.
Nope.

I had grand aspirations. Believe me, I tried.
Humanity examined with lessons applied.
But the right words escaped me; so often they do.
Have these in lieu.

布莱恩·比尔斯顿

文件

版本 操作系统 描述 MD5 校验和 文件大小 GPG Sigstore
Gzip 压缩的源代码 tarball 源代码发布 0057f64688cd117dc8665d683b772bf2 25.2 MB SIG CRT SIG
XZ 压缩的源代码 tarball 源代码发布 6b78b49898386aed44830b3969fccf70 18.9 MB SIG CRT SIG
macOS 64 位 universal2 安装程序 macOS 适用于 macOS 10.9 及更高版本 f5dc09e18d673500ec3356a436dc8af6 40.5 MB SIG CRT SIG
Windows 安装程序(64 位) Windows 4f3190ac3675b3364e7cdc401d3cb23d 24.0 MB SIG CRT SIG
Windows 安装程序(32 位) Windows e93c60f348c54a52251f9fd18f5295bd 22.8 MB SIG CRT SIG
Windows 安装程序 (ARM64) Windows 实验性 98aef7724315d737c25c27b45f7a189c 23.1 MB SIG CRT SIG
Windows 嵌入式包 (64 位) Windows ca7be369f9be60d6e6a56d2644968eb4 10.0 MB SIG CRT SIG
Windows 嵌入式包 (32 位) Windows 3988992b4e604abd810503173b9634f1 9.1 MB SIG CRT SIG
Windows 嵌入式包 (ARM64) Windows 04ffa0b4fb06849c5f0f59dd5d982e14 9.2 MB SIG CRT SIG