mirror of
https://github.com/python/cpython.git
synced 2026-01-07 16:02:55 +00:00
fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno (#136716)
This commit is contained in:
parent
b7d722547b
commit
180b3eb697
1 changed files with 6 additions and 0 deletions
|
|
@ -287,6 +287,12 @@ class FrameSummary:
|
|||
of code that was running when the frame was captured.
|
||||
- :attr:`locals` Either None if locals were not supplied, or a dict
|
||||
mapping the name to the repr() of the variable.
|
||||
- :attr:`end_lineno` The last line number of the source code for this frame.
|
||||
By default, it is set to lineno and indexation starts from 1.
|
||||
- :attr:`colno` The column number of the source code for this frame.
|
||||
By default, it is None and indexation starts from 0.
|
||||
- :attr:`end_colno` The last column number of the source code for this frame.
|
||||
By default, it is None and indexation starts from 0.
|
||||
"""
|
||||
|
||||
__slots__ = ('filename', 'lineno', 'end_lineno', 'colno', 'end_colno',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue