From 8edcd650ce48daa2d255a71971dc64c2dae324ee Mon Sep 17 00:00:00 2001 From: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:28:34 -0400 Subject: [PATCH] fix variable name in dis documentation example 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. --- Doc/library/dis.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 72e55cd81d42f6..d087c7c1adc34d 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