Skip to content

Commit 32c0aeb

Browse files
[3.12] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) (#105841)
bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to 2f180ce (bpo-44530, released as part of 3.11) removes the qualified name at TOS (cherry picked from commit 486b52a) Co-authored-by: Alex Doe <[email protected]>
1 parent 5ca707d commit 32c0aeb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/dis.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -1389,12 +1389,15 @@ iterations of the loop.
13891389
* ``0x02`` a dictionary of keyword-only parameters' default values
13901390
* ``0x04`` a tuple of strings containing parameters' annotations
13911391
* ``0x08`` a tuple containing cells for free variables, making a closure
1392-
* the code associated with the function (at ``STACK[-2]``)
1393-
* the :term:`qualified name` of the function (at ``STACK[-1]``)
1392+
* the code associated with the function (at ``STACK[-1]``)
13941393

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

1397+
.. versionchanged:: 3.11
1398+
Qualified name at ``STACK[-1]`` was removed.
1399+
1400+
13981401
.. opcode:: BUILD_SLICE (argc)
13991402

14001403
.. index:: pair: built-in function; slice

0 commit comments

Comments
 (0)