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