Windows

macOS

工具/示例

C API

Call the public sys.get_asyncgen_hooks() and sys.set_asyncgen_hooks() functions instead. Patch by Victor Stinner.

Python 3.11.0 alpha 6

Release date: 2022-03-07

核心与内置函数

There is no change in semantics.

Now it does not modify external classes and functions. We also now correctly mark classmethods as not to be type checked.

文档

测试

构建

Windows

IDLE

C API

Python 3.11.0 alpha 5

Release date: 2022-02-03

核心与内置函数

Calls without named arguments are implemented as a sequence of two instructions: PRECALL; CALL. Calls with named arguments are implemented as a sequence of three instructions: PRECALL; KW_NAMES; CALL. There are two different PRECALL instructions: PRECALL_FUNTION and PRECALL_METHOD. The latter pairs with LOAD_METHOD.

This partition into pre-call and call allows better specialization, and thus better performance ultimately.

There is no change in semantics.

Also add JUMP_NO_INTERRUPT bytecode that acts like JUMP_ABSOLUTE, but does not check for interrupts.

文档

测试

构建

Windows

macOS

IDLE

  • bpo-45296 [https://bugs.python.org/issue?@action=redirect&bpo=45296]: Clarify close, quit, and exit in IDLE. In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit' is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and 'exit()' mean 'close Shell'. If there are no other windows, this also exits IDLE.

C API

Python 3.11.0 alpha 4

Release date: 2022-01-13

核心与内置函数

Removes CALL_FUNCTION, CALL_FUNCTION_KW, CALL_METHOD and CALL_METHOD_KW.

Adds CALL_NO_KW and CALL_KW call instructions, and PRECALL_METHOD prefix for pairing with LOAD_METHOD.

Now all constants (MONDAYSUNDAY) are documented, tested, and added to __all__.

These features were never supported and do not always work correctly. The functions exist on the API by accident through inheritance and will be removed in the future.

文档

测试