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