bpo-35461: Document C API functions which suppress exceptions.#11119
bpo-35461: Document C API functions which suppress exceptions.#11119serhiy-storchaka merged 3 commits intopython:masterpython/cpython:masterfrom serhiy-storchaka:doc-c-api-suppress-exceptionsserhiy-storchaka/cpython:doc-c-api-suppress-exceptionsCopy head branch name to clipboard
Conversation
vstinner
left a comment
There was a problem hiding this comment.
"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. |
|
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.
There is a typo in "corresponding"
https://bugs.python.org/issue35461