Skip to content

Commit 4d82f15

Browse files
Update the dis module docs.
1 parent 0db1edc commit 4d82f15

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Doc/library/dis.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,10 @@ All of the following opcodes use their arguments.
10441044
.. opcode:: LOAD_FAST (var_num)
10451045

10461046
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
1047+
Closures are also handled by this operation.
1048+
1049+
.. versionchanged:: 3.10
1050+
Closures are handled here now instead of ``LOAD_CLOSURE`` (removed).
10471051

10481052

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

10581062

1059-
.. opcode:: LOAD_CLOSURE (i)
1060-
1061-
Pushes a reference to the cell contained in slot *i* of the cell and free
1062-
variable storage. The name of the variable is
1063-
``co_fastlocalnames[i + len(co_varnames)]``.
1064-
1065-
10661063
.. opcode:: LOAD_DEREF (i)
10671064

10681065
Loads the cell contained in slot *i* of the cell and free variable storage.

0 commit comments

Comments
 (0)