Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ the module-level functions described above.
A :class:`!FrameSummary` object represents a single :ref:`frame <frame-objects>`
in a :ref:`traceback <traceback-objects>`.

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

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

The line number of the source code for this frame.

.. attribute:: FrameSummary.end_lineno

The last line number of the source code for this frame.

.. attribute:: FrameSummary.name

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

.. attribute:: FrameSummary.end_colno
The last column number of the source code for this frame.

.. _traceback-example:

Examples of Using the Module-Level Functions
Expand Down
Loading