| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| /* Transfer ownership of exc_value from exc_state to exc since we are | ||
| done with it. */ | ||
| PyException_SetContext(exc, exc_state->exc_value); | ||
| exc_state->exc_value = NULL; |
There was a problem hiding this comment.
Note that PyErr_Occurred checks whether the type is NULL, not the value. So setting just the value to NULL here doesn't follow the interpreter's semantics for the triplet.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, the PR is correct.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
… to NULL
This PR tidies up exception handling in Future/Task._make_cancelled_error to make it clearer what's happening and pave the way for a refactor of how the interpreter represents exceptions.
https://bugs.python.org/issue45711