8000 bpo-43693: Compute deref offsets in compiler by markshannon · Pull Request #25152 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43693: Compute deref offsets in compiler #25152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Next Next commit
Update the dis module docs.
  • Loading branch information
ericsnowcurrently committed Jun 3, 2021
commit 4d82f15f5cb6e2cbdbbafcb231a549dfe07e994f
11 changes: 4 additions & 7 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,10 @@ All of the following opcodes use their arguments.
.. opcode:: LOAD_FAST (var_num)

Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
Closures are also handled by this operation.

.. versionchanged:: 3.10
Closures are handled here now instead of ``LOAD_CLOSURE`` (removed).


.. opcode:: STORE_FAST (var_num)
Expand All @@ -1056,13 +1060,6 @@ All of the following opcodes use their arguments.
Deletes local ``co_varnames[var_num]``.


.. opcode:: LOAD_CLOSURE (i)

Pushes a reference to the cell contained in slot *i* of the cell and free
variable storage. The name of the variable is
``co_fastlocalnames[i + len(co_varnames)]``.


.. opcode:: LOAD_DEREF (i)

Loads the cell contained in slot *i* of the cell and free variable storage.
Expand Down
0