Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1259,13 +1259,17 @@ iterations of the loop.
correct name, the bytecode pushes the unbound method and ``STACK[-1]``.
``STACK[-1]`` will be used as the first argument (``self``) by :opcode:`CALL`
or :opcode:`CALL_KW` when calling the unbound method.
Otherwise, ``NULL`` and the object returned by
the attribute lookup are pushed.
Otherwise, the object returned by the attribute lookup
and ``NULL`` are pushed.

.. versionchanged:: 3.12
If the low bit of ``namei`` is set, then a ``NULL`` or ``self`` is
pushed to the stack before the attribute or unbound method respectively.

.. versionchanged:: 3.13
``NULL`` or ``self`` is now pushed to the stack after the attribute
or unbound method respectively.


.. opcode:: LOAD_SUPER_ATTR (namei)

Expand Down Expand Up @@ -1422,6 +1426,9 @@ iterations of the loop.
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable.

.. versionchanged:: 3.13
``NULL`` is now pushed to the stack after the global variable.

.. opcode:: LOAD_FAST (var_num)

Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
Expand Down
Loading