gh-101578: Amend PyErr_{Set,Get}RaisedException docs by erlend-aasland · Pull Request #101962 · python/cpython (original) (raw)
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 our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation26 Commits6 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
- I removed the duplicate example; it should be sufficient to provide a single example.
- Use
note::
to put emphasis on non-standard reference count semantics in the set function. - Mark the getter as returning a borrowed reference.
- Apply Diátaxis: be succinct and to the point (and hopefully also clearer)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @erlend-aasland ; this is a substantial improvement to the previous docs.
Perhaps its worth fixing the other couple remaining similar docs defects also introduced in PR #101607 , namely in the descriptions of the newly documented functions PyException_GetArgs
and PyException_SetArgs
(that could use a similar (if much simpler) treatment as here), and the deprecation notices added to PyErr_Fetch
, PyErr_Restore
and PyErr_NormalizeException
not being added to, and particularly duplicating, the .. deprecated
directive.
Thanks @erlend-aasland ; this is a substantial improvement to the previous docs.
Thanks, and thanks for the review!
Perhaps its worth fixing the other couple remaining similar docs defects also introduced in PR #101607 , namely in the descriptions of the newly documented functions
PyException_GetArgs
andPyException_SetArgs
(that could use a similar (if much simpler) treatment as here), and the deprecation notices added toPyErr_Fetch
,PyErr_Restore
andPyErr_NormalizeException
not being added to, and particularly duplicating, the.. deprecated
directive.
Definitely; perhaps as a follow-up PR?
Definitely; perhaps as a follow-up PR?
Yeah certainly could be; up to you, of course
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple followup suggestions
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: C.A.M. Gerlach CAM.Gerlach@Gerlach.CAM
Thanks for the reviews, Irit and CAM; highly appreciated. I'll create a follow-up PR Any Time Soon™.
erlend-aasland added a commit to erlend-aasland/cpython that referenced this pull request
jaraco pushed a commit to jaraco/cpython that referenced this pull request
Co-authored-by: C.A.M. Gerlach CAM.Gerlach@Gerlach.CAM
carljm added a commit to carljm/cpython that referenced this pull request
carljm added a commit to carljm/cpython that referenced this pull request