From: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com> Date: Wed, 13 Sep 2023 05:07:56 +0000 (-0400) Subject: Fix variable name in dis documentation example (GH-109343) X-Git-Tag: v3.13.0a1~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0c06a4f933faccd7f8201701b2491d38464212c;p=thirdparty%2FPython%2Fcpython.git Fix variable name in dis documentation example (GH-109343) BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency. --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 72e55cd81d42..d087c7c1adc3 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -597,7 +597,7 @@ not have to be) the original ``STACK[-2]``. key = STACK.pop() container = STACK.pop() - STACK.append(container[index]) + STACK.append(container[key]) .. opcode:: STORE_SUBSCR