@@ -508,7 +508,9 @@ the module-level functions described above.
508
508
A :class: `!FrameSummary ` object represents a single :ref: `frame <frame-objects >`
509
509
in a :ref: `traceback <traceback-objects >`.
510
510
511
- .. class :: FrameSummary(filename, lineno, name, lookup_line=True, locals=None, line=None)
511
+ .. class :: FrameSummary(filename, lineno, name, *,\
512
+ lookup_line=True, locals=None,\
513
+ line=None, end_lineno=None, colno=None, end_colno=None)
512
514
513
515
Represents a single :ref: `frame <frame-objects >` in the
514
516
:ref: `traceback <traceback-objects >` or stack that is being formatted
@@ -544,6 +546,22 @@ in a :ref:`traceback <traceback-objects>`.
544
546
trailing whitespace stripped.
545
547
If the source is not available, it is ``None ``.
546
548
549
+ .. attribute :: FrameSummary.end_lineno
550
+
551
+ The last line number of the source code for this frame.
552
+ By default, it is set to ``lineno `` and indexation starts from 1.
553
+
554
+ .. attribute :: FrameSummary.colno
555
+
556
+ The column number of the source code for this frame.
557
+ By default, it is ``None `` and indexation starts from 0.
558
+
559
+ .. attribute :: FrameSummary.end_colno
560
+
561
+ The last column number of the source code for this frame.
562
+ By default, it is ``None `` and indexation starts from 0.
563
+
564
+
547
565
.. _traceback-example :
548
566
549
567
Examples of Using the Module-Level Functions
0 commit comments