Python 3.12.0b2
发布日期: 2023年6月6日
这是 Python 3.12 的测试版预览
Python 3.12 仍在开发中。本次发布,3.12.0b2,是 3.12 四个测试版预览中的第二个。
Beta 预览版旨在让更广泛的社区有机会测试新功能和错误修复,并准备他们的项目以支持新的功能发布。
我们强烈鼓励第三方 Python 项目的维护者在测试阶段使用 3.12 进行测试,并尽快将发现的问题报告到Python 错误跟踪器。尽管该版本计划在进入测试阶段时功能完整,但仍有可能在发布候选阶段开始之前(2023年7月31日星期一),功能会被修改,甚至在极少数情况下会被删除。我们的目标是在 beta 4 之后没有 ABI 更改,并在第一个发布候选版本 3.12.0rc1 之后尽可能少地进行代码更改。为了实现这一目标,在测试阶段尽可能多地暴露 3.12 极其重要。
请记住,这是一个预览版本,不建议在生产环境中使用。
与 3.11 相比,3.12 系列的主要新功能
Python 3.12 的一些主要新特性和更改包括:
- 泛型类的新类型注解语法 (PEP 695)。
- 更灵活的 f-string 解析,允许以前许多不允许的操作 (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年6月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 校验和 | 文件大小 | Sigstore | GPG | |
|---|---|---|---|---|---|---|---|
| Gzip 压缩的源码包 | 源码发布版 | f46dd5ad8725d67dd3352a329e040ad9 | 25.6 MB | .sigstore | SIG | ||
| XZ 压缩的源码包 | 源码发布版 | 7631011aa48961f5dc0e72a9117b7937 | 19.3 MB | .sigstore | SIG | ||
| macOS 64 位 universal2 安装程序 | macOS | 适用于 macOS 10.9 及更高版本 | d7460b53167b192de91164b0d4c808af | 41.9 MB | .sigstore | SIG | |
| Windows 安装程序 (64位) | Windows | 推荐 | e8d757375445abdd9db5182d50c74b79 | 24.5 MB | .sigstore | SIG | |
| Windows 安装程序 (32位) | Windows | 38c1e36758c7c86f367588d0e2643f30 | 23.3 MB | .sigstore | SIG | ||
| Windows 安装程序 (ARM64) | Windows | 实验性 | ae22c9d41357854d46881acabcce877d | 23.8 MB | .sigstore | SIG | |
| Windows 可嵌入包 (64位) | Windows | 16dc1fe4f552fbd2b96e11d051602a9a | 9.9 MB | .sigstore | SIG | ||
| Windows 可嵌入包 (32位) | Windows | a6533c3be8d1782e3bb2da79fdd5afea | 8.9 MB | .sigstore | SIG | ||
| Windows 可嵌入包 (ARM64) | Windows | 8c1a8b8d784c06c648dea2648e7a1a42 | 9.3 MB | .sigstore | SIG | ||
