Skip to content

Commit d9bbb52

Browse files
[3.13] gh-122838: Document missing opcodes (GH-123073) (#126492)
gh-122838: Document missing opcodes (GH-123073) (cherry picked from commit 9cba47d) Co-authored-by: Kamil Turek <[email protected]>
1 parent 23ab1f9 commit d9bbb52

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Doc/library/dis.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,13 @@ iterations of the loop.
13831383
This opcode is now only used in situations where the local variable is
13841384
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`.
13851385

1386+
.. opcode:: LOAD_FAST_LOAD_FAST (var_nums)
1387+
1388+
Pushes references to ``co_varnames[var_nums >> 4]`` and
1389+
``co_varnames[var_nums & 15]`` onto the stack.
1390+
1391+
.. versionadded:: 3.13
1392+
13861393
.. opcode:: LOAD_FAST_CHECK (var_num)
13871394

13881395
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack,
@@ -1403,6 +1410,20 @@ iterations of the loop.
14031410

14041411
Stores ``STACK.pop()`` into the local ``co_varnames[var_num]``.
14051412

1413+
.. opcode:: STORE_FAST_STORE_FAST (var_nums)
1414+
1415+
Stores ``STACK[-1]`` into ``co_varnames[var_nums >> 4]``
1416+
and ``STACK[-2]`` into ``co_varnames[var_nums & 15]``.
1417+
1418+
.. versionadded:: 3.13
1419+
1420+
.. opcode:: STORE_FAST_LOAD_FAST (var_nums)
1421+
1422+
Stores ``STACK.pop()`` into the local ``co_varnames[var_nums >> 4]``
1423+
and pushes a reference to the local ``co_varnames[var_nums & 15]``
1424+
onto the stack.
1425+
1426+
.. versionadded:: 3.13
14061427

14071428
.. opcode:: DELETE_FAST (var_num)
14081429

0 commit comments

Comments
 (0)