https://github.com/python/cpython/commit/bac0e115b8c439def509053c71a6c20651348313
commit: bac0e115b8c439def509053c71a6c20651348313
branch: main
author: jlallas384 <[email protected]>
committer: iritkatriel <[email protected]>
date: 2024-09-01T07:11:40+01:00
summary:

gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551)

files:
M Doc/library/dis.rst

diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index cc8f6363d78be3..c0bb977e4fe148 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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)
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to