注意: 雖然 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 年 5 月 8 日)之前新增,並且如有必要,可能會在釋出候選階段(2023 年 7 月 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 年 4 月 3 日釋出。

更多資源

接下來是些完全不一樣的內容

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 校驗和 檔案大小 Sigstore GPG
Gzip 壓縮的原始碼包 原始碼釋出版 8b5986524d06b208b8cdca8d0411801b 25.2 MB CRT SIG SIG
XZ 壓縮的原始碼包 原始碼釋出版 832b1c175bb9982a75dd4a1f8b899675 18.9 MB CRT SIG SIG
macOS 64 位 universal2 安裝程式 macOS 適用於 macOS 10.9 及更高版本 e5dd31509889c630bfecf0a9b70bb3b8 40.6 MB CRT SIG SIG
Windows 安裝程式 (64位) Windows 推薦 171a0ae8f7fb92caaa1ac07312f36815 24.1 MB CRT SIG SIG
Windows 安裝程式 (32位) Windows 337efcc2b41b7d52c5d95b99c0ed3ce8 23.0 MB CRT SIG SIG
Windows 安裝程式 (ARM64) Windows 實驗性 9ce06807e2c96d2b50f4d70be2d04334 23.4 MB CRT SIG SIG
Windows 可嵌入包 (64位) Windows dd8436303ec5bf6f6179fa6d34b23c5d 9.7 MB CRT SIG SIG
Windows 可嵌入包 (32位) Windows b743a93fb98b8509d7823a34a38a4897 8.7 MB CRT SIG SIG
Windows 可嵌入包 (ARM64) Windows 7d58b2d9779bae73e8945858a491c9c7 9.1 MB CRT SIG SIG