@@ -57,8 +57,8 @@ interpreter.
57
57
option and the ``show_offsets `` argument were added.
58
58
59
59
.. versionchanged :: 3.14
60
- Added the :option: `-P <dis --show-positions> ` command-line option
61
- and the ``show_positions `` argument.
60
+ The :option: `-P <dis --show-positions> ` command-line option
61
+ and the ``show_positions `` argument were added .
62
62
63
63
Example: Given the function :func: `!myfunc `::
64
64
@@ -109,7 +109,7 @@ The following options are accepted:
109
109
110
110
.. cmdoption :: -P, --show-positions
111
111
112
- Show positions of instructions.
112
+ Show positions of instructions in the source code .
113
113
114
114
If :file: `infile ` is specified, its disassembled code will be written to stdout.
115
115
Otherwise, disassembly is performed on compiled source code received from stdin.
@@ -154,7 +154,7 @@ code.
154
154
offsets in the output.
155
155
156
156
If *show_positions * is ``True ``, :meth: `.dis ` will include instruction
157
- positions in the output.
157
+ source code positions in the output.
158
158
159
159
.. classmethod :: from_traceback(tb, *, show_caches=False)
160
160
@@ -319,8 +319,9 @@ operation is being performed, so the intermediate analysis object isn't useful:
319
319
Disassemble a code object, indicating the last instruction if *lasti * was
320
320
provided. The output is divided in the following columns:
321
321
322
- #. the line number, for the first instruction of each line, or the
323
- instruction positions if *show_positions * is true.
322
+ #. the source code location of the instruction. Complete location information
323
+ is shown if *show_positions * is true. Otherwise (the default) only the
324
+ line number is displayed.
324
325
#. the current instruction, indicated as ``--> ``,
325
326
#. a labelled instruction, indicated with ``>> ``,
326
327
#. the address of the instruction,
0 commit comments