@@ -57,8 +57,8 @@ interpreter.
5757 option and the ``show_offsets `` argument were added.
5858
5959 .. 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 .
6262
6363Example: Given the function :func: `!myfunc `::
6464
@@ -109,7 +109,7 @@ The following options are accepted:
109109
110110.. cmdoption :: -P, --show-positions
111111
112- Show positions of instructions.
112+ Show positions of instructions in the source code .
113113
114114If :file: `infile ` is specified, its disassembled code will be written to stdout.
115115Otherwise, disassembly is performed on compiled source code received from stdin.
@@ -154,7 +154,7 @@ code.
154154 offsets in the output.
155155
156156 If *show_positions * is ``True ``, :meth: `.dis ` will include instruction
157- positions in the output.
157+ source code positions in the output.
158158
159159 .. classmethod :: from_traceback(tb, *, show_caches=False)
160160
@@ -319,8 +319,9 @@ operation is being performed, so the intermediate analysis object isn't useful:
319319 Disassemble a code object, indicating the last instruction if *lasti * was
320320 provided. The output is divided in the following columns:
321321
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.
324325 #. the current instruction, indicated as ``--> ``,
325326 #. a labelled instruction, indicated with ``>> ``,
326327 #. the address of the instruction,
0 commit comments