安全性

核心与内置函数

Also, make sure to pass non-zero fold values when creating subclasses in various methods. Previously, fold was silently ignored.

Deprecate pathlib.PurePath.is_reserved().

文档

Move csv.__version__ to the csv module instead of reexporting it from the internal _csv module, and remove __version__ from csv.__all__.

测试

构建

Windows

macOS

IDLE

工具/示例

C API

Patch by Victor Stinner.

Python 3.13.0 alpha 3

Release date: 2024-01-17

安全性

核心与内置函数

The issue primarily showed up in 3.11 by multithreaded users of ast.parse(). In 3.12 a change to when garbage collection can be triggered prevented the race condition from occurring.

Also fixed a second 3.12.0 potential security bug. If a value of extra_groups=[] was passed to subprocess.Popen or related APIs, the underlying setgroups(0, NULL) system call to clear the groups list would not be made in the child process prior to exec().

This was identified via code inspection in the process of fixing the first bug.