]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140980: document `SET_FUNCTION_ATTRIBUTE` flag for `annotate` function...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 9 Nov 2025 19:04:48 +0000 (20:04 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Nov 2025 19:04:48 +0000 (19:04 +0000)
gh-140980: document `SET_FUNCTION_ATTRIBUTE` flag for `annotate` function  (GH-141306)
(cherry picked from commit 6f20ea1e2d302b7b88d64b6786abbad1747ff950)

Co-authored-by: Lakshya Upadhyaya <lakshya.upadhyaya05@gmail.com>
Doc/library/dis.rst

index 593720f573891184722e7cea1a208c74309bd773..ff4681dcb0e8a74c5ee2c6ee247ae7056e75ba1d 100644 (file)
@@ -1673,9 +1673,13 @@ 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 :term:`annotate function` for the function object
 
    .. versionadded:: 3.13
 
+   .. versionchanged:: 3.14
+      Added ``0x10`` to indicate the annotate function for the function object.
+
 
 .. opcode:: BUILD_SLICE (argc)