Python 3.12.0a6
发布日期: 2023 年 3 月 8 日
这是 Python 3.12 的早期开发者预览版.
与 3.11 相比,3.12 系列的主要新功能
Python 3.12 仍在开发中。此版本 3.12.0a6 是计划的七个 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
包(默认安装在虚拟环境和许多其他地方)继续提供distutils
模块。 - 许多其他旧的、损坏的和已弃用的函数、类和方法已被删除。
- 字符串中的无效反斜杠转义序列现在会发出
SyntaxWarning
而不是DeprecationWarning
警告,使其更加明显。(它们将来会成为语法错误。) - 整数的内部表示已更改,为性能增强做准备。(这不应影响大多数用户,因为它是一个内部细节,但可能会给 Cython 生成的代码带来问题。)
- (嘿,各位核心开发人员,如果此列表中缺少您认为重要的功能,请告知 Thomas。)
有关 Python 3.12 更改的更多详细信息,请参阅Python 3.12 的新功能。Python 3.12 的下一个预发行版本将是 3.12.0a7,目前计划于 2023-04-03 发布。
更多资源
- 在线文档.
- PEP 693,Python 3.12 发布时间表。
- 通过 GitHub Issues 报告错误。
- 帮助资助 Python 及其社区.
现在来点完全不同的东西
Let me not to the marriage of true minds
Admit impediments. Love is not love
Which alters when it alteration finds,
Or bends with the remover to remove:
O, no! it is an ever-fixed mark,
That looks on tempests and is never shaken;
It is the star to every wandering bark,
Whose worth’s unknown, although his height be taken.
Love’s not Time’s fool, though rosy lips and cheeks
Within his bending sickle’s compass come;
Love alters not with his brief hours and weeks,
But bears it out even to the edge of doom.
If this be error, and upon me prov’d,
I never writ, nor no man ever lov’d.
威廉·莎士比亚的十四行诗 116。
文件
版本 | 操作系统 | 描述 | MD5 校验和 | 文件大小 | GPG | Sigstore | |
---|---|---|---|---|---|---|---|
Gzip 压缩的源 tarball | 源代码发布 | 8b5986524d06b208b8cdca8d0411801b | 25.2 MB | SIG | CRT | SIG | |
XZ 压缩的源 tarball | 源代码发布 | 832b1c175bb9982a75dd4a1f8b899675 | 18.9 MB | SIG | CRT | SIG | |
macOS 64 位通用2 安装程序 | macOS | 适用于 macOS 10.9 及更高版本 | e5dd31509889c630bfecf0a9b70bb3b8 | 40.6 MB | SIG | CRT | SIG |
Windows 安装程序(64 位) | Windows | 推荐 | 171a0ae8f7fb92caaa1ac07312f36815 | 24.1 MB | SIG | CRT | SIG |
Windows 安装程序(32 位) | Windows | 337efcc2b41b7d52c5d95b99c0ed3ce8 | 23.0 MB | SIG | CRT | SIG | |
Windows 安装程序 (ARM64) | Windows | 实验性 | 9ce06807e2c96d2b50f4d70be2d04334 | 23.4 MB | SIG | CRT | SIG |
Windows 可嵌入包(64 位) | Windows | dd8436303ec5bf6f6179fa6d34b23c5d | 9.7 MB | SIG | CRT | SIG | |
Windows 可嵌入包(32 位) | Windows | b743a93fb98b8509d7823a34a38a4897 | 8.7 MB | SIG | CRT | SIG | |
Windows 可嵌入包 (ARM64) | Windows | 7d58b2d9779bae73e8945858a491c9c7 | 9.1 MB | SIG | CRT | SIG |