C API

这些不是 受限 API 的组成部分。

Patch by Victor Stinner.

Patch by Victor Stinner.

Python 3.11.0 alpha 1

Release date: 2021-10-05

安全性

核心与内置函数

(This issue impacted only the C code exception rendering, the traceback module was using qualname already).

This means that a version tag serves as a unique identifier for the state of a class. We rely on this for effective specialization of the LOAD_ATTR and other instructions.

Three specialized forms of STORE_ATTR are added:

  • STORE_ATTR_SLOT

  • STORE_ATTR_SPLIT_KEYS

  • STORE_ATTR_WITH_HINT

Three specialized forms of BINARY_SUBSCR are added:

  • BINARY_SUBSCR_LIST_INT

  • BINARY_SUBSCR_TUPLE_INT

  • BINARY_SUBSCR_DICT

Contributed by Pablo Galindo, Batuhan Taskaya and Ammar Askar as part of PEP 657 [https://peps.python.org/pep-0657/].

Two specialized forms of LOAD_GLOBAL are added:

  • LOAD_GLOBAL_MODULE

  • LOAD_GLOBAL_BUILTIN

Four specialized forms of LOAD_ATTR are added:

  • LOAD_ATTR_SLOT

  • LOAD_ATTR_SPLIT_KEYS

  • LOAD_ATTR_WITH_HINT

  • LOAD_ATTR_MODULE

Patch by Mark Shannon

Patch by Hugo van Kemenade.

Patch by Hugo van Kemenade.

Patch by Hugo van Kemenade.

Patch by Hugo van Kemenade.

Use bdist_wheel (wheel packages) instead.

Patch by Hugo van Kemenade.

binascii.crc_hqx() 函数仍然可用。

Patch by Victor Stinner.

Updated code and docs to better distinguish frame and FrameSummary.

The undocumented internal urllib.parse Quoted class API is now deprecated, for removal in 3.14.

Patch by Erlend E. Aasland.

请改用 TestLoader 方法:

Patch by Erlend E. Aasland.

文档

测试

The main motivation for this line to be removed from the test is that the size of SharedMemory is not ever guaranteed to be the same. It is decided by the platform.