Skip to content

Conversation

@Damien-Chen
Copy link
Contributor

@Damien-ChenDamien-Chen commented Jan 4, 2025

@ZeroIntensityZeroIntensity added needs backport to 3.13 bugs and security fixes needs backport to 3.12 only security fixes labels Jan 4, 2025
picnixz
picnixz previously requested changes Jan 4, 2025
@Damien-Chen
Copy link
ContributorAuthor

end_lineno cannot have a default None as well ?

There is no description for the colno, end_lineno and endcolno in the __init__ function, should I add the documentation for all the above argument ?

`
.. attribute:: FrameSummary.end_lineno

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

.. attribute:: FrameSummary.colno

 The column number of the source code for this frame. 

.. attribute:: FrameSummary.end_colno

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

`

@picnixz
Copy link
Member

end_lineno cannot have a default None as well ?

No, I meant it cannot have a default value without name having one. The problem was where it was put in the signature.

@Damien-Chen
Copy link
ContributorAuthor

Understood, I have fixed it with latest commit.

@picnixz
Copy link
Member

picnixz commented Mar 1, 2025

Do you want a final look @ZeroIntensity before I merge it?

@Damien-Chen
Copy link
ContributorAuthor

Of course.

Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with it :)

@picnixzpicnixz self-assigned this Mar 1, 2025
@picnixzpicnixz changed the title gh-128481: Add missing documentation for traceback.FrameSummary.end_{col,line}gh-128481: Add missing documentation for traceback.FrameSummary.end_{col,line}noMar 2, 2025
@picnixzpicnixz changed the title gh-128481: Add missing documentation for traceback.FrameSummary.end_{col,line}nogh-128481: Add missing documentation for traceback.FrameSummaryMar 2, 2025
@picnixzpicnixz merged commit 051f0e5 into python:mainMar 2, 2025
24 checks passed
@github-project-automationgithub-project-automationbot moved this from Todo to Done in Docs PRsMar 2, 2025
@miss-islington-app
Copy link

Thanks @Damien-Chen for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@picnixz
Copy link
Member

Thank you!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 2, 2025
…ythonGH-128484) Complete the `traceback.FrameSummary` signature and add missing documentation for the `colno` and `end_{col,line}no` attributes. (cherry picked from commit 051f0e5) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
@bedevere-app
Copy link

GH-130753 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label Mar 2, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 2, 2025
…ythonGH-128484) Complete the `traceback.FrameSummary` signature and add missing documentation for the `colno` and `end_{col,line}no` attributes. (cherry picked from commit 051f0e5) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
@bedevere-app
Copy link

GH-130754 is a backport of this pull request to the 3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12 only security fixes label Mar 2, 2025
picnixz pushed a commit that referenced this pull request Mar 2, 2025
…H-128484) (#130753) * gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484) Complete the `traceback.FrameSummary` signature and add missing documentation for the `colno` and `end_{col,line}no` attributes. (cherry picked from commit 051f0e5) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
picnixz pushed a commit that referenced this pull request Mar 2, 2025
…H-128484) (#130754) * gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484) Complete the `traceback.FrameSummary` signature and add missing documentation for the `colno` and `end_{col,line}no` attributes. (cherry picked from commit 051f0e5) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
@Damien-ChenDamien-Chen deleted the ph-1 branch March 8, 2025 02:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@Damien-Chen@picnixz@ZeroIntensity