From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 1 Sep 2024 07:38:38 +0000 (+0200) Subject: [3.12] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551) (#123556) X-Git-Tag: v3.12.6~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3d8ccc89dbaa090ca642630b81d993f2c61ae0e;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551) (#123556) --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 76f1d67811d4..82b4aa28857f 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)