Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Improve docs
  • Loading branch information
tomasr8 committed May 25, 2023
commit 7c326b08106f17379bece624ca4c866de4d7f85c
13 changes: 8 additions & 5 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,14 @@ details of bytecode instructions as :class:`Instruction` instances:

.. data:: baseopcode

numeric code for the base operation if operation is specialized. Otherwise equal to :data:`opcode`
numeric code for the base operation if operation is specialized;
otherwise equal to :data:`opcode`


.. data:: baseopname

human readable name for the base operation if operation is specialized. Otherwise equal to :data:`opname`
human readable name for the base operation if operation is specialized;
otherwise equal to :data:`opname`


.. data:: arg
Expand Down Expand Up @@ -378,8 +380,8 @@ details of bytecode instructions as :class:`Instruction` instances:

.. data:: start_offset

start index of operation within bytecode sequence including prefixed ``EXTENDED_ARG`` operations if present.
Otherwise equal to :data:`offset`
start index of operation within bytecode sequence, including prefixed
``EXTENDED_ARG`` operations if present; otherwise equal to :data:`offset`


.. data:: cache_offset
Expand Down Expand Up @@ -420,7 +422,8 @@ details of bytecode instructions as :class:`Instruction` instances:

.. versionchanged:: 3.13

Added fields ``start_offset``, ``cache_offset``, ``end_offset``, ``baseopname``, ``baseopcode``, ``jump_target`` and ``oparg``.
Added fields ``start_offset``, ``cache_offset``, ``end_offset``,
``baseopname``, ``baseopcode``, ``jump_target`` and ``oparg``.


.. class:: Positions
Expand Down