From b545299560aa69c110c78f2ba38c2c8b84bca2a6 Mon Sep 17 00:00:00 2001 From: Damien-Chen Date: Sun, 12 Jan 2025 09:12:38 +0800 Subject: [PATCH] Modify as reviewer suggested --- Doc/library/traceback.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 87d63c207873b3..09960994323801 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -503,7 +503,9 @@ the module-level functions described above. A :class:`!FrameSummary` object represents a single :ref:`frame ` in a :ref:`traceback `. -.. class:: FrameSummary(filename, lineno, name, lookup_line=True, locals=None, line=None, end_lineno=None, colno=None, end_colno=None) +.. class:: FrameSummary(filename, lineno, name, *,\ + lookup_line=True, locals=None, \ + line=None, end_lineno=None, colno=None, end_colno=None) Represents a single :ref:`frame ` in the :ref:`traceback ` or stack that is being formatted @@ -542,14 +544,17 @@ in a :ref:`traceback `. .. attribute:: FrameSummary.end_lineno The last line number of the source code for this frame. + By default, it is ``None`` and is 1-index base. .. attribute:: FrameSummary.colno The column number of the source code for this frame. + By default, it is ``None`` and is 1-index base. .. attribute:: FrameSummary.end_colno The last column number of the source code for this frame. + By default, it is ``None`` and is 1-index base. .. _traceback-example: