From 1550e478e5abcb07936a8583e17980272a8890f5 Mon Sep 17 00:00:00 2001 From: Alex Doe Date: Tue, 24 May 2022 17:52:22 -0500 Subject: [PATCH 1/2] 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 --- Doc/library/dis.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 8bc3721109b1ea..5a1af322063330 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1210,11 +1210,14 @@ 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 TOS1) - * the :term:`qualified name` of the function (at TOS) - + * the code associated with the function (at TOS) + .. versionchanged:: 3.10 Flag value ``0x04`` is a tuple of strings instead of dictionary + + .. versionchanged:: 3.11 + Qualified name at TOS was removed in favor of co_qualname usage + .. opcode:: BUILD_SLICE (argc) From 0e596a338cf04b0d7f208db2cd26943f4d5c4384 Mon Sep 17 00:00:00 2001 From: Alex Doe Date: Tue, 10 Jan 2023 18:58:38 -0700 Subject: [PATCH 2/2] Removes trailing spaces --- Doc/library/dis.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 5a1af322063330..e9973105b138d1 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1211,13 +1211,13 @@ iterations of the loop. * ``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 TOS) - + .. versionchanged:: 3.10 Flag value ``0x04`` is a tuple of strings instead of dictionary .. versionchanged:: 3.11 Qualified name at TOS was removed in favor of co_qualname usage - + .. opcode:: BUILD_SLICE (argc)