From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 16 Jun 2023 17:17:33 +0000 (-0700) Subject: [3.12] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) (#105841) X-Git-Tag: v3.12.0b3~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32c0aeb8a796d85720c6046ad855cc1eb65f0c98;p=thirdparty%2FPython%2Fcpython.git [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 https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS (cherry picked from commit 486b52a3158e0f64fc54efdfa34ed5437b3619f2) Co-authored-by: Alex Doe --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 9b90f1ef23d9..3b31384edeb5 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1389,12 +1389,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