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

Python 3.12.0a1

釋出日期:2022 年 10 月 25 日

這是 Python 3.12 的早期開發者預覽版

與 3.11 相比,3.12 系列的主要新功能

Python 3.12 仍在開發中。此次釋出的 3.12.0a1 是七個計劃中的 alpha 版本中的第一個。

Alpha 版本的目的是為了更容易地測試新功能和錯誤修復的當前狀態,並測試釋出過程。

在 Alpha 階段,功能可能會在 Beta 階段開始(2023 年 5 月 8 日)之前新增,如有必要,可能會在釋出候選階段(2023 年 7 月 31 日)之前進行修改或刪除。請記住,這是一個預覽版本,建議在生產環境中使用。

Python 3.12 的許多新功能仍在計劃和編寫中。迄今為止,主要的新功能和更改包括:

  • 根據 PEP 623,unicode 物件的 C 實現中已棄用的 wstrwstr_length 成員已被移除。

  • unittest 模組中,一些長期棄用的方法和類已被移除。(它們自 Python 3.1 或 3.2 起就已被棄用)。

  • 已移除已棄用的 smtpd 模組。

  • 許多其他舊的、損壞的和已棄用的函式、類和方法已被移除。

  • (嘿,核心開發者們,如果你們認為重要的功能沒有出現在這個列表中,請告知 Thomas。)

Python 3.12 的下一個預釋出版本將是 3.12.0a2,目前計劃於 2022 年 11 月 14 日釋出。

更多資源

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

這不是我曾希望寫下的詩

This is not the poem that I had hoped to write
when I sat at my desk and the page was white.
You see, there were other words that Id had in mind,
yet this is what I leave behind.

I thought it was a poem to eradicate war;
one of such power, it would heal all the sores
of a world torn apart by conflict and schism.
But it isnt.

Lovers, Id imagined, would quote from it daily,
Mothers would sing it to soothe crying babies.
And whole generations would be given new hope.
Nope.

I had grand aspirations. Believe me, I tried.
Humanity examined with lessons applied.
But the right words escaped me; so often they do.
Have these in lieu.

Brian Bilston

檔案

版本 作業系統 描述 MD5 校驗和 檔案大小 Sigstore GPG
Gzip 壓縮的原始碼包 原始碼釋出版 0057f64688cd117dc8665d683b772bf2 25.2 MB CRT SIG SIG
XZ 壓縮的原始碼包 原始碼釋出版 6b78b49898386aed44830b3969fccf70 18.9 MB CRT SIG SIG
macOS 64 位 universal2 安裝程式 macOS 適用於 macOS 10.9 及更高版本 f5dc09e18d673500ec3356a436dc8af6 40.5 MB CRT SIG SIG
Windows 安裝程式 (64位) Windows 4f3190ac3675b3364e7cdc401d3cb23d 24.0 MB CRT SIG SIG
Windows 安裝程式 (32位) Windows e93c60f348c54a52251f9fd18f5295bd 22.8 MB CRT SIG SIG
Windows 安裝程式 (ARM64) Windows 實驗性 98aef7724315d737c25c27b45f7a189c 23.1 MB CRT SIG SIG
Windows 可嵌入包 (64位) Windows ca7be369f9be60d6e6a56d2644968eb4 10.0 MB CRT SIG SIG
Windows 可嵌入包 (32位) Windows 3988992b4e604abd810503173b9634f1 9.1 MB CRT SIG SIG
Windows 可嵌入包 (ARM64) Windows 04ffa0b4fb06849c5f0f59dd5d982e14 9.2 MB CRT SIG SIG