核心与内置函数

This makes a few operations slightly more efficient, and will enable a more compact and faster 2s-complement representation of most ints in future.

Patch by Nikita Sobolev.

(Contributed by Giampaolo Rodola)

文档

测试

构建

Windows

工具/示例

C API

Python 3.12.0 alpha 6

Release date: 2023-03-07

安全性

核心与内置函数

A DeprecationWarning is now raised by pty.master_open() and pty.slave_open(). They were undocumented and deprecated long long ago in the docstring in favor of pty.openpty().

文档

测试

构建

Windows

macOS

C API

Add PyException_GetArgs() and PyException_SetArgs() as convenience functions for retrieving and modifying the args passed to the exception's constructor.

Python 3.12.0 alpha 5

Release date: 2023-02-07

安全性

核心与内置函数

文档

测试

构建

Windows

Python 3.12.0 alpha 4

Release date: 2023-01-10

核心与内置函数

Now reassigning b in [(b := 1) for a, b.prop in some_iter] is allowed. Reassigning a is still disallowed as per PEP 572 [https://peps.python.org/pep-0572/].