Skip to content

Commit 4fbaa99

Browse files
committed
Document new opcode.
1 parent 82eb42d commit 4fbaa99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/library/dis.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,15 @@ All of the following opcodes use their arguments.
991991
``i`` is no longer offset by the length of ``co_varnames``.
992992

993993

994+
.. opcode:: COPY_FREE_VARS (n)
995+
996+
Copies the ``n`` free variables from the closure into the frame.
997+
Removes the need for special code on the caller's side when calling
998+
closures.
999+
1000+
.. versionadded:: 3.11
1001+
1002+
9941003
.. opcode:: RAISE_VARARGS (argc)
9951004

9961005
Raises an exception using one of the 3 forms of the ``raise`` statement,

0 commit comments

Comments
 (0)