There was an error while loading. Please reload this page.
1 parent 95352dc commit 5f97a7fCopy full SHA for 5f97a7f
1 file changed
Doc/library/traceback.rst
@@ -503,7 +503,7 @@ the module-level functions described above.
503
A :class:`!FrameSummary` object represents a single :ref:`frame <frame-objects>`
504
in a :ref:`traceback <traceback-objects>`.
505
506
-.. 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)
507
508
Represents a single :ref:`frame <frame-objects>` in the
509
:ref:`traceback <traceback-objects>` or stack that is being formatted
@@ -528,6 +528,10 @@ in a :ref:`traceback <traceback-objects>`.
528
529
The line number of the source code for this frame.
530
531
+ .. attribute:: FrameSummary.end_lineno
532
+
533
+ The last line number of the source code for this frame.
534
535
.. attribute:: FrameSummary.name
536
537
Equivalent to accessing :attr:`f.f_code.co_name <codeobject.co_name>` on
@@ -539,6 +543,9 @@ in a :ref:`traceback <traceback-objects>`.
539
543
trailing whitespace stripped.
540
544
If the source is not available, it is ``None``.
541
545
546
+ .. attribute:: FrameSummary.line
547
+ The last column number of the source code for this frame.
548
542
549
.. _traceback-example:
550
551
Examples of Using the Module-Level Functions
0 commit comments