Python 3.12.0b2
发布日期: 2023 年 6 月 6 日
这是 Python 3.12 的 beta 预览版
Python 3.12 仍在开发中。 此版本 3.12.0b2 是 3.12 的四个 beta 预览版中的第二个。
Beta 预览版旨在为更广泛的社区提供测试新功能和错误修复的机会,并准备他们的项目以支持新功能版本的发布。
我们强烈建议第三方 Python 项目的维护人员在 beta 阶段使用 3.12 进行测试,并将发现的问题尽快报告给 Python 错误跟踪器。 虽然该版本计划在进入 beta 阶段时完成所有功能,但功能可能会被修改,或者在极少数情况下,可能会被删除,直到发布候选阶段开始(2023-07-31 星期一)。 我们的目标是在 beta 4 之后不进行任何 ABI 更改,并在 3.12.0rc1(第一个发布候选版本)之后尽可能少地更改代码。 为了实现这一目标,在 beta 阶段尽可能多地展示 3.12 至关重要。
请记住,这是一个预览版本,不建议在生产环境中使用。
与 3.11 相比,3.12 系列的主要新功能
Python 3.12 中的一些主要新功能和更改包括
- 用于泛型类的新类型注解语法 (PEP 695)。
- 更灵活的 f 字符串解析,允许许多以前不允许的事情 (PEP 701)。
- 更加改进的错误消息。 更多由错别字引起的异常现在会向用户提出建议。
- 许多大大小小的性能改进(如 PEP 709)。
- 支持 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.0b3,目前计划于 2023-06-19 发布。
更多资源
- 在线文档.
- PEP 693,Python 3.12 发布时间表。
- 通过 GitHub Issues 报告错误。
- 帮助资助 Python 及其社区.
现在来点完全不同的东西
I forgot how lush and electrified it was with you. The shaggy fragrant zaps continually passing back and forth, my fingertip to your clavicle, or your wrist rubbing mine to share gardenia oil. We so purred like dragonflies we kept the mosquitoes away and the conversation was heavy, mother-lacerated childhoods and the sad way we'd both been both ignored and touched badly. Knowing that being fierce and proud and out and loud was just a bright new way to be needy. Please listen to me, oh what a buzz! you're the only one I can tell. Even with no secret, I could come close to your ear with my mouth and that was ecstasy, too. We barely touched each other, we didn't have to speak. The love we made leapt to life like a cat in the space between us (if there ever was space between us), and looked back at us through fog. Sure, this was San Francisco, it was often hard to see. But fog always burned off, too, so we watched this creature to see if it knew what it was doing. It didn't.
同性恋骄傲周末,旧金山,1992 年,作者:Brenda Shaughnessy。
文件
版本 | 操作系统 | 描述 | MD5 校验和 | 文件大小 | GPG | Sigstore | |
---|---|---|---|---|---|---|---|
Gzipped 源代码 tarball | 源代码发布 | f46dd5ad8725d67dd3352a329e040ad9 | 25.6 MB | SIG | .sigstore | ||
XZ 压缩的源代码 tarball | 源代码发布 | 7631011aa48961f5dc0e72a9117b7937 | 19.3 MB | SIG | .sigstore | ||
macOS 64 位 universal2 安装程序 | macOS | 适用于 macOS 10.9 及更高版本 | d7460b53167b192de91164b0d4c808af | 41.9 MB | SIG | .sigstore | |
Windows 安装程序(64 位) | Windows | 推荐 | e8d757375445abdd9db5182d50c74b79 | 24.5 MB | SIG | .sigstore | |
Windows 安装程序(32 位) | Windows | 38c1e36758c7c86f367588d0e2643f30 | 23.3 MB | SIG | .sigstore | ||
Windows 安装程序(ARM64) | Windows | 实验性 | ae22c9d41357854d46881acabcce877d | 23.8 MB | SIG | .sigstore | |
Windows 嵌入式软件包(64 位) | Windows | 16dc1fe4f552fbd2b96e11d051602a9a | 9.9 MB | SIG | .sigstore | ||
Windows 嵌入式软件包(32 位) | Windows | a6533c3be8d1782e3bb2da79fdd5afea | 8.9 MB | SIG | .sigstore | ||
Windows 嵌入式软件包(ARM64) | Windows | 8c1a8b8d784c06c648dea2648e7a1a42 | 9.3 MB | SIG | .sigstore |