Python 3.15.0 于2026年10月9日正式发布,成为该编程语言的最新主要版本1。本次更新由1,012名贡献者完成的5,643次提交组成1,引入了多项性能和功能方面的重大改进。
在性能方面,实验性JIT编译器在x86-64 Linux平台上实现了7-8%的性能提升,在AArch64 macOS平台上的提升更是达到11-12%1。语言层面新增了多项特性,包括UTF-8作为默认编码方式、sentinel和frozendict两种新的内置类型1,还包括推导式中的解包、显式延迟导入等功能1。此外,错误消息得到改进,C API和标准库也进行了显著增强1。
使用者需要注意,macOS 27.0上存在一个已知问题:tkinter模块在打开对话框时可能导致应用无响应1。
Python 3.15.0 was released on October 9, 2026, marking a major milestone for the programming language 1. The release represents the collaborative effort of 1,012 contributors who submitted 5,643 commits to bring the new version to completion 1.
The update introduces substantial performance enhancements and new language features. An experimental JIT compiler delivers performance improvements of 7–8% on x86-64 Linux systems and 11–12% on AArch64 macOS 1. UTF-8 is now the default encoding 1. The release also includes new built-in types, including sentinel and frozendict 1. Error messages have been refined for improved clarity, and both the C API and standard library have undergone significant enhancements 1.
Several new Python Enhancement Proposals (PEPs) are included in this version, covering features such as sentinel types, UTF-8 encoding standardization, unpacking within comprehensions, explicit lazy imports, and the frozendict type 1. However, users on macOS 27.0 should be aware of a known issue in which the tkinter module may cause applications to become unresponsive when opening dialogs 1.
评论
还没有评论,欢迎留下第一条。