Skip to content

Commit e7952dd

Browse files
committed
Add 3.14 instructions and update CALL_FUNCTION_EX in dis docs
1 parent afc5ab6 commit e7952dd

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

Doc/library/dis.rst

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,26 @@ operations on it as if it was a Python list. The top of the stack corresponds to
646646

647647
.. versionadded:: 3.11
648648

649+
.. opcode:: BUILD_INTERPOLATION
650+
651+
Push a new interpolated string constructed from format components on the stack.
652+
653+
.. versionadded:: 3.14
654+
655+
656+
.. opcode:: LOAD_SMALL_INT (i)
657+
658+
Push a small integer literal (−128 <= i <= 127) directly onto the stack.
659+
660+
.. versionadded:: 3.14
661+
662+
663+
.. opcode:: NOT_TAKEN
664+
665+
No-op; a hint to the interpreter that a branch was predicted as not taken.
666+
667+
.. versionadded:: 3.14
668+
649669

650670
**Unary operations**
651671

@@ -1576,16 +1596,23 @@ iterations of the loop.
15761596
.. opcode:: CALL_FUNCTION_EX (flags)
15771597

15781598
Calls a callable object with variable set of positional and keyword
1579-
arguments. If the lowest bit of *flags* is set, the top of the stack
1599+
arguments. If the lowest bit of *flags* is set, the top of the stack
15801600
contains a mapping object containing additional keyword arguments.
15811601
Before the callable is called, the mapping object and iterable object
15821602
are each "unpacked" and their contents passed in as keyword and
15831603
positional arguments respectively.
1604+
1605+
If the second bit of *flags* is set (new in 3.14), the call is made
1606+
in a specialized way to handle certain internal optimizations.
1607+
15841608
``CALL_FUNCTION_EX`` pops all arguments and the callable object off the stack,
1585-
calls the callable object with those arguments, and pushes the return value
1609+
calls the callable with those arguments, and pushes the return value
15861610
returned by the callable object.
15871611

15881612
.. versionadded:: 3.6
1613+
.. versionchanged:: 3.14
1614+
The second bit of *flags* may now be set to enable specialized calls.
1615+
15891616

15901617

15911618
.. opcode:: PUSH_NULL

0 commit comments

Comments
 (0)