注意: 雖然 JavaScript 對於本網站不是必需的,但您與內容的互動將受到限制。請開啟 JavaScript 以獲得完整體驗。

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 實現中已棄用的 wstrwstr_length 成員。
  • unittest 模組中,刪除了許多長期棄用的方法和類。(它們自 Python 3.1 或 3.2 起已被棄用)。
  • 已刪除已棄用的 smtpddistutils 模組(請參閱 PEP 594PEP 632)。setuptools 包(預設安裝在虛擬環境和許多其他地方)繼續提供 distutils 模組。
  • 許多其他舊的、損壞的和已棄用的函式、類和方法已被刪除。
  • 字串中的無效反斜槓轉義序列現在會發出 SyntaxWarning 而不是 DeprecationWarning 警告,使其更加明顯。(它們將來會成為語法錯誤。)
  • 整數的內部表示已更改,為效能增強做準備。(這不應影響大多數使用者,因為它是一個內部細節,但可能會給 Cython 生成的程式碼帶來問題。)
  • (嘿,各位核心開發人員,如果此列表中缺少您認為重要的功能,請告知 Thomas。)

有關 Python 3.12 更改的更多詳細資訊,請參閱Python 3.12 的新功能。Python 3.12 的下一個預發行版本將是 3.12.0a7,目前計劃於 2023-04-03 釋出。

更多資源

現在來點完全不同的東西

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 worths unknown, although his height be taken.
Loves not Times fool, though rosy lips and cheeks
Within his bending sickles 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 provd,
I never writ, nor no man ever lovd.

威廉·莎士比亞的十四行詩 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