-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
gh-150663: Document that PyErr_SetRaisedException accepts null #153046
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -499,12 +499,12 @@ Querying the error indicator | |||||||
| .. c:function:: void PyErr_SetRaisedException(PyObject *exc) | ||||||||
|
|
||||||||
| Set *exc* as the exception currently being raised, | ||||||||
| clearing the existing exception if one is set. | ||||||||
| clearing the existing exception if one is set. If *exc* is ``NULL``, | ||||||||
| just clear the existing exception. | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| .. warning:: | ||||||||
| .. note:: | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that it deserves to be documented as a note. Other |
||||||||
|
|
||||||||
| This call ":term:`steals <steal>`" a reference to *exc*, | ||||||||
| which must be a valid exception. | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this line is helpful. We should just say "must be a valid exception or |
||||||||
| This call ":term:`steals <steal>`" a reference to *exc*. | ||||||||
|
|
||||||||
| .. versionadded:: 3.12 | ||||||||
|
|
||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding a new paragraph: