GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-119580: Improve version added section for convenience variable by gaogaotiantian · Pull Request #119583 · python/cpython Conversation
|
| * ``$_exception``: the exception if the frame is raising an exception | ||
|
|
||
| .. versionadded:: 3.12 | ||
| .. versionadded:: 3.12 *convenience variable* |
There was a problem 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:
| .. versionadded:: 3.12 *convenience variable* | |
| .. versionadded:: 3.12 | |
| Added the three convenience variables |
E.g. see
cpython/Doc/library/typing.rst
Lines 891 to 897 in 5d04cc5
| .. versionadded:: 3.6.2 | |
| Added :data:`NoReturn`. | |
| .. versionadded:: 3.11 | |
| Added :data:`Never`. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Okay I copied the format from enum.rst where they do thing differently...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Okay I copied the format from
enum.rstwhere 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @gaogaotiantian for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…le (pythonGH-119583) (cherry picked from commit 3dfa364) Co-authored-by: Tian Gao <[email protected]>
…le (pythonGH-119583) (cherry picked from commit 3dfa364) Co-authored-by: Tian Gao <[email protected]>
|
GH-119624 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-119625 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ble (GH-119583) (#119625) Co-authored-by: Tian Gao <[email protected]>
…ble (GH-119583) (#119624) Co-authored-by: Tian Gao <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.