]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551) (#123556)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Sep 2024 07:38:38 +0000 (09:38 +0200)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2024 07:38:38 +0000 (08:38 +0100)
Doc/library/dis.rst

index 76f1d67811d4924ce11afdc3637299031cf9ca03..82b4aa28857f418bdd542e0f43c4beb10b073a9e 100644 (file)
@@ -1000,8 +1000,8 @@ iterations of the loop.
       if count == 0:
           value = ()
       else:
-          STACK = STACK[:-count]
           value = tuple(STACK[-count:])
+          STACK = STACK[:-count]
 
       STACK.append(value)