diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-13 10:37:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 10:37:46 (GMT) |
commit | 5b38bdeaf1fe51b270b4d45f080854dfbd03a75d (patch) | |
tree | 7f268692476c6077dd3abbddcdfb318bab8518b3 /Doc/library/dis.rst | |
parent | 47402e235d5c03054105a6c7be07c97be3102b77 (diff) | |
download | cpython-5b38bdeaf1fe51b270b4d45f080854dfbd03a75d.zip cpython-5b38bdeaf1fe51b270b4d45f080854dfbd03a75d.tar.gz cpython-5b38bdeaf1fe51b270b4d45f080854dfbd03a75d.tar.bz2 |
[3.12] Fix variable name in dis documentation example (GH-109343) (#109364)
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.
(cherry picked from commit a0c06a4f933faccd7f8201701b2491d38464212c)
Co-authored-by: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com>
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r-- | Doc/library/dis.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 6fadccf..b559b08 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -528,7 +528,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 |