Skip to content

Commit 9cba47d

Browse files
authored
pythongh-122838: Document missing opcodes (python#123073)
1 parent b1c4ffc commit 9cba47d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Doc/library/dis.rst

+21
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,13 @@ iterations of the loop.
13951395
This opcode is now only used in situations where the local variable is
13961396
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`.
13971397

1398+
.. opcode:: LOAD_FAST_LOAD_FAST (var_nums)
1399+
1400+
Pushes references to ``co_varnames[var_nums >> 4]`` and
1401+
``co_varnames[var_nums & 15]`` onto the stack.
1402+
1403+
.. versionadded:: 3.13
1404+
13981405
.. opcode:: LOAD_FAST_CHECK (var_num)
13991406

14001407
Pushes a reference to the local ``co_varnames[var_num]`` onto the stack,
@@ -1415,6 +1422,20 @@ iterations of the loop.
14151422

14161423
Stores ``STACK.pop()`` into the local ``co_varnames[var_num]``.
14171424

1425+
.. opcode:: STORE_FAST_STORE_FAST (var_nums)
1426+
1427+
Stores ``STACK[-1]`` into ``co_varnames[var_nums >> 4]``
1428+
and ``STACK[-2]`` into ``co_varnames[var_nums & 15]``.
1429+
1430+
.. versionadded:: 3.13
1431+
1432+
.. opcode:: STORE_FAST_LOAD_FAST (var_nums)
1433+
1434+
Stores ``STACK.pop()`` into the local ``co_varnames[var_nums >> 4]``
1435+
and pushes a reference to the local ``co_varnames[var_nums & 15]``
1436+
onto the stack.
1437+
1438+
.. versionadded:: 3.13
14181439

14191440
.. opcode:: DELETE_FAST (var_num)
14201441

0 commit comments

Comments
 (0)