mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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.
This commit is contained in:
parent
6c0ddca409
commit
a0c06a4f93
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue