Skip to content

Commit 5f97a7f

Browse files
committed
Add missing argument for FrameSummary
1 parent 95352dc commit 5f97a7f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Doc/library/traceback.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ the module-level functions described above.
503503
A :class:`!FrameSummary` object represents a single :ref:`frame <frame-objects>`
504504
in a :ref:`traceback <traceback-objects>`.
505505

506-
.. class:: FrameSummary(filename, lineno, name, lookup_line=True, locals=None, line=None)
506+
.. class:: FrameSummary(filename, lineno, end_lineno=None, name, lookup_line=True, locals=None, line=None, end_colno=None)
507507

508508
Represents a single :ref:`frame <frame-objects>` in the
509509
:ref:`traceback <traceback-objects>` or stack that is being formatted
@@ -528,6 +528,10 @@ in a :ref:`traceback <traceback-objects>`.
528528

529529
The line number of the source code for this frame.
530530

531+
.. attribute:: FrameSummary.end_lineno
532+
533+
The last line number of the source code for this frame.
534+
531535
.. attribute:: FrameSummary.name
532536

533537
Equivalent to accessing :attr:`f.f_code.co_name <codeobject.co_name>` on
@@ -539,6 +543,9 @@ in a :ref:`traceback <traceback-objects>`.
539543
trailing whitespace stripped.
540544
If the source is not available, it is ``None``.
541545

546+
.. attribute:: FrameSummary.line
547+
The last column number of the source code for this frame.
548+
542549
.. _traceback-example:
543550

544551
Examples of Using the Module-Level Functions

0 commit comments

Comments
 (0)