From: jlallas384 <118093399+jlallas384@users.noreply.github.com> Date: Sun, 1 Sep 2024 06:11:40 +0000 (+0400) Subject: gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551) X-Git-Tag: v3.14.0a1~631 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bac0e115b8c439def509053c71a6c20651348313;p=thirdparty%2FPython%2Fcpython.git gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551) --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index cc8f6363d78b..c0bb977e4fe1 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)