GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — bpo-45711: Use _PyErr_ClearExcState instead of setting only exc_value… by iritkatriel · Pull Request #29404 · python/cpython Conversation
|
| /* 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.
The reason will be displayed to describe this comment to others. Learn more.
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 an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the PR is correct.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.