-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
bpo-35461: Document C API functions which suppress exceptions. #11119
bpo-35461: Document C API functions which suppress exceptions. #11119
Conversation
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.
"Note that errors raised in" is vague. Reader can understand "exceptions directly raised by the executed code", but these functions can get exceptions caused by a signal handler like KeyboardInterrupt.
Maybe add a new paragraph somewhere in the C API documentation to explain that, and add a link to paragraph?
The wording was slightly changed. |
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.
LGTM.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
GH-11209 is a backport of this pull request to the 3.7 branch. |
…nGH-11119) (cherry picked from commit 3fcc1e0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-11210 is a backport of this pull request to the 3.6 branch. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…nGH-11119) (cherry picked from commit 3fcc1e0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
) (cherry picked from commit 3fcc1e0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Otherwise returns ``0``. This function always succeeds. | ||
|
||
Note that this function tries to get and release a buffer, and exceptions | ||
which occur while calling correspoding functions will get suppressed. |
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.
There is a typo in "corresponding"
https://bugs.python.org/issue35461