Python 3.12.0a3
发布日期:2022 年 12 月 6 日
这是 Python 3.12 的早期开发者预览版.
与 3.11 相比,3.12 系列的主要新特性
Python 3.12 仍在开发中。此版本 3.12.0a3 是计划的七个 alpha 版本中的第二个。
Alpha 版本的目的是更容易测试新特性和错误修复的当前状态,以及测试发布过程。
在 alpha 阶段,新特性可能会在 beta 阶段开始之前(2023-05-08)添加,如有必要,可能会在发布候选阶段之前(2023-07-31)修改或删除。请记住,这是一个预览版本,不建议在生产环境中使用。
Python 3.12 的许多新特性仍在计划和编写中。到目前为止,主要的新特性和更改包括
- 更加改进的错误消息。更多可能由拼写错误引起的异常现在会向用户提出建议。
- 支持 Linux
perf
分析器在跟踪中报告 Python 函数名称。 - 根据 PEP 623,已删除 Unicode 对象 C 实现中已弃用的
wstr
和wstr_length
成员。 - 在
unittest
模块中,删除了许多长期弃用的方法和类。(它们自 Python 3.1 或 3.2 以来已弃用)。 - 已删除弃用的
smtpd
和distutils
模块(请参阅 PEP 594 和 PEP 632)。setuptools
包(默认安装在 virtualenvs 和许多其他地方)继续提供distutils
模块。 - 已删除许多其他旧的、损坏的和弃用的函数、类和方法。
- 字符串中的无效反斜杠转义序列现在会发出
SyntaxWarning
而不是DeprecationWarning
,使其更加明显。(它们将来会成为语法错误。) - (嘿,核心开发者同仁,如果您发现此列表中缺少您认为重要的特性,请告知 Thomas。)
有关 Python 3.12 更改的更多详细信息,请参阅Python 3.12 中的新功能。Python 3.12 的下一个预发布版本将是 3.12.0a4,目前计划于 2023-01-09 发布。
更多资源
- 在线文档.
- PEP 693,Python 3.12 发布时间表。
- 通过 GitHub Issues 报告错误。
- 帮助资助 Python 及其社区.
现在来点完全不同的东西
12 月 6 日是圣尼古拉斯节,尽管它通常在 12 月 5 日庆祝,即 Sinterklaasavond(圣尼古拉斯前夕)。传统上,这是一个匿名赠送礼物的节日,礼物附有诗歌。因此,这里有一首 GPT-3 生成的圣尼古拉斯诗歌,以配合今天的发布
Sinterklaas is coming to town
To bring gifts to the Python community
Code that's fast and efficient
With syntax that's easy to see
For the beginners, a book on the basics
To guide them through the world of coding
For the experts, a new module to explore
With features that keep their skills honing
Sinterklaas will visit each and every coder
With presents to help them advance
In the world of Python programming
With skills that give them a chance
So let us all welcome Sinterklaas
With open arms and hearts full of cheer
For the gifts he brings to the Python community
Will help us all grow and persevere.
(圣尼古拉斯的其他传统方面包括“惊喜”礼物包装,其中礼物伪装成完全不同的东西,以及“Zwarte Piet”(黑彼得),圣尼古拉斯的“助手”,其起源具有明显的种族主义色彩。我决定只保留这首诗。)
文件
版本 | 操作系统 | 描述 | MD5 校验和 | 文件大小 | GPG | Sigstore | |
---|---|---|---|---|---|---|---|
Gzipped 源代码 tarball | 源代码发布 | 847fbe8eedda82bbc75d39c881da84be | 25.1 MB | SIG | CRT | SIG | |
XZ 压缩源代码 tarball | 源代码发布 | 199338e6b375c6f70519d3ebbb5c98c3 | 18.8 MB | SIG | CRT | SIG | |
macOS 64 位 universal2 安装程序 | macOS | 适用于 macOS 10.9 及更高版本 | 0c20265ccef472b8ad0415d162375808 | 40.5 MB | SIG | CRT | SIG |
Windows 安装程序(64 位) | Windows | 推荐 | 3c8b4f9ac217f421cc5701ba951bbc6e | 23.9 MB | SIG | CRT | SIG |
Windows 安装程序(32 位) | Windows | 82b977b1b21d54a60e00ea69005b07c9 | 22.8 MB | SIG | CRT | SIG | |
Windows 安装程序(ARM64) | Windows | 实验性 | ce6c426b05ca59a8e5eb53822e600191 | 23.1 MB | SIG | CRT | SIG |
Windows 可嵌入包(64 位) | Windows | 6a9113f3fadae3abe3ce6fb2c4d95c8a | 9.8 MB | SIG | CRT | SIG | |
Windows 可嵌入包(32 位) | Windows | 9bad66343431ed6a5914fa95b3e65c4a | 8.8 MB | SIG | CRT | SIG | |
Windows 可嵌入包(ARM64) | Windows | a0724055c99f9cbed35af586f3e4406a | 9.0 MB | SIG | CRT | SIG |