https://github.com/python/cpython/commit/b0a50a69cfef756c1b08a93fc7689e4a17451351
commit: b0a50a69cfef756c1b08a93fc7689e4a17451351
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: iritkatriel <[email protected]>
date: 2024-09-01T08:38:20+01:00
summary:
[3.13] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551)
(#123555)
files:
M Doc/library/dis.rst
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index a0d70e49e8f14e..c5507e89a527ed 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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)
_______________________________________________
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]