Skip to content

Commit 655891a

Browse files
committed
Update the dis module documentation
1 parent e0fe2eb commit 655891a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Doc/library/dis.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,16 +1621,14 @@ iterations of the loop.
16211621
The positional arguments tuple and the keyword arguments dict are each
16221622
"unpacked" and passed to the callable. ``CALL_FUNCTION_EX`` pops all these
16231623
items and pushes the callable's return value.
1624-
1625-
Earlier Python versions documented an integer *flags* operand indicating
1626-
the presence of a mapping object for keyword arguments; this no longer
1627-
applies. The opcode itself no longer has a separate operand or flag bits
1628-
for this purpose in Python 3.14 and later.
1624+
The presence of keyword arguments is indicated solely by whether the
1625+
last stack item is ``NULL`` or a :class:`dict`; there is no operand or
1626+
flag associated with this opcode.
16291627

16301628
.. versionadded:: 3.6
16311629
.. versionchanged:: 3.14
1632-
The obsolete *flags* argument was removed from the documentation; the
1633-
opcode no longer uses an operand to signal presence of ``**kwargs``.
1630+
The opcode no longer uses a flags operand to signal the presence of
1631+
``**kwargs``; the stack layout alone determines this.
16341632

16351633

16361634
.. opcode:: PUSH_NULL

0 commit comments

Comments
 (0)