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 |