From 16c0c26b4b93c8080c0e296e979fa7b13047c244 Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Sun, 9 Nov 2025 17:43:20 +0000 Subject: [PATCH 1/3] Doc: Add SET_FUNCTION_ATTRIBUTE 0x10 (annotate) to dis documentation Fixes gh-141155 --- Doc/library/dis.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 284eeff5e4dc7e..2a611e94c6d6ec 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1673,6 +1673,7 @@ 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 + * ``0x10`` the annotate function for the function object .. versionadded:: 3.13 From 38151bf2ff674ba6a2b2376e30c8fbcd14f72bda Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Sun, 9 Nov 2025 18:10:30 +0000 Subject: [PATCH 2/3] DOC: add versionchanged 3.14 for SET_FUNCTION_ATTRIBUTE flag 0x10 --- Doc/library/dis.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 2a611e94c6d6ec..c11cd4fc0f0298 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1677,6 +1677,9 @@ iterations of the loop. .. versionadded:: 3.13 + .. versionchanged:: 3.14 + Added ``0x10`` to indicate the annotate function for the function object. + .. opcode:: BUILD_SLICE (argc) From 044c01cdd33a8bb459b2810b96e5ddecf2b86e18 Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Sun, 9 Nov 2025 18:34:43 +0000 Subject: [PATCH 3/3] DOC: link to :term: in dis.rst for SET_FUNCTION_ATTRIBUTE flag 0x10 --- Doc/library/dis.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index c11cd4fc0f0298..a24589fd0a5af3 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1673,7 +1673,7 @@ 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 - * ``0x10`` the annotate function for the function object + * ``0x10`` the :term:`annotate function` for the function object .. versionadded:: 3.13