Skip to content

Commit

Permalink
bpo-44530: Document the change in MAKE_FUNCTION behavior (python#93189)
Browse files Browse the repository at this point in the history
* bpo-44530: Document the change in MAKE_FUNCTION behavior

Fixes dis module documentation for MAKE_FUNCTION due to python@2f180ce (bpo-44530, released as part of 3.11) removes the qualified name at TOS
  • Loading branch information
alexdoesh committed Jun 16, 2023
1 parent 25a64fd commit 486b52a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1431,12 +1431,15 @@ iterations of the loop.
* ``0x02`` a dictionary of keyword-only parameters' default values
* ``0x04`` a tuple of strings containing parameters' annotations
* ``0x08`` a tuple containing cells for free variables, making a closure
* the code associated with the function (at ``STACK[-2]``)
* the :term:`qualified name` of the function (at ``STACK[-1]``)
* the code associated with the function (at ``STACK[-1]``)

.. versionchanged:: 3.10
Flag value ``0x04`` is a tuple of strings instead of dictionary

.. versionchanged:: 3.11
Qualified name at ``STACK[-1]`` was removed.


.. opcode:: BUILD_SLICE (argc)

.. index:: pair: built-in function; slice
Expand Down

0 comments on commit 486b52a

Please sign in to comment.