Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-119580: Improve version added section for convenience variable#119583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantiangaogaotiantian commentedMay 26, 2024
edited by github-actionsbot
Loading

The version added section is not clear about what is "added" because there are a lot of content above. Clarify it by explicitly write the feature.


📚 Documentation preview 📚:https://cpython-previews--119583.org.readthedocs.build/

@gaogaotiantiangaogaotiantian added skip news needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes labelsMay 26, 2024
@bedevere-appbedevere-appbot added docsDocumentation in the Doc dir awaiting review labelsMay 26, 2024
@@ -288,7 +288,7 @@ There are three preset *convenience variables*:
* ``$_retval``: the return value if the frame is returning
* ``$_exception``: the exception if the frame is raising an exception

.. versionadded:: 3.12
.. versionadded:: 3.12 *convenience variable*
Copy link
Member

Choose a reason for hiding this comment

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

I think this is how we'd normally do this kind of thing:

Suggested change
..versionadded::3.12 *convenience variable*
..versionadded::3.12
Added the three convenience variables

E.g. see

..versionadded::3.6.2
Added:data:`NoReturn`.
..versionadded::3.11
Added:data:`Never`.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Okay I copied the format fromenum.rst where they do thing differently...

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Also this is what confused the user - we did not only add the three convenience variables, we added the convenience variable feature, together with three pre-defined convenience variables.

Copy link
Member

Choose a reason for hiding this comment

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

Okay I copied the format fromenum.rst where they do thing differently...

Oh, fair enough!

Also this is what confused the user - we did not only add the three convenience variables, we added the convenience variable feature, together with three pre-defined convenience variables.

I see. I think your proposed text is maybe slightly too terse in that case; I still misread it as a non-pdb expert

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks!

@AlexWaygoodAlexWaygood merged commit3dfa364 intopython:mainMay 27, 2024
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 27, 2024
…le (pythonGH-119583)(cherry picked from commit3dfa364)Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 27, 2024
…le (pythonGH-119583)(cherry picked from commit3dfa364)Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@bedevere-app
Copy link

GH-119624 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 27, 2024
@bedevere-app
Copy link

GH-119625 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelMay 27, 2024
AlexWaygood pushed a commit that referenced this pull requestMay 27, 2024
…ble (GH-119583) (#119625)Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
AlexWaygood pushed a commit that referenced this pull requestMay 27, 2024
…ble (GH-119583) (#119624)Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@gaogaotiantiangaogaotiantian deleted the pdb-convenience-var-docs branchMay 30, 2024 03:40
estyxx pushed a commit to estyxx/cpython that referenced this pull requestJul 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AlexWaygoodAlexWaygoodAlexWaygood approved these changes

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@gaogaotiantian@AlexWaygood

[8]ページ先頭

©2009-2025 Movatter.jp