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

index a0d70e49e8f14eaae800755ff3b6614213619cca..c5507e89a527edda3fe2a3d1beade2032bb7c5a6 100644 (file)
@@ -1107,8 +1107,8 @@ iterations of the loop.
       if count == 0:
           value = ()
       else:
-          STACK = STACK[:-count]
           value = tuple(STACK[-count:])
+          STACK = STACK[:-count]
 
       STACK.append(value)