注意: 虽然 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 年 5 月 8 日)之前添加,如有必要,可能会在发布候选阶段(2023 年 7 月 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.

Brian Bilston

文件

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