]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Doc: Fix typo in documentation for ``MAKE_FUNCTION`` opcode (GH-126396) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 Nov 2024 17:35:12 +0000 (18:35 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2024 17:35:12 +0000 (17:35 +0000)
Doc: Fix typo in documentation for  ``MAKE_FUNCTION`` opcode (GH-126396)
(cherry picked from commit e5a4b402ae55f5eeeb44d3e7bc3f3ec39b249846)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Doc/library/dis.rst

index e7b7b81497cb744bdcdb55a5f59006759d6d0d5e..c37059cb090d1a555b3cbed87a1f76bf6691c041 100644 (file)
@@ -1550,7 +1550,7 @@ iterations of the loop.
 
 .. opcode:: MAKE_FUNCTION
 
-   Pushes a new function object on the stack built from the code object at ``STACK[1]``.
+   Pushes a new function object on the stack built from the code object at ``STACK[-1]``.
 
    .. versionchanged:: 3.10
       Flag value ``0x04`` is a tuple of strings instead of dictionary