]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551)
authorjlallas384 <118093399+jlallas384@users.noreply.github.com>
Sun, 1 Sep 2024 06:11:40 +0000 (10:11 +0400)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2024 06:11:40 +0000 (07:11 +0100)
Doc/library/dis.rst

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