Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 40 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisesbpo-39164: errors: add and expose _PyErr_GetExcInfo #17752
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
@vstinner just in case you missed it |
Misc/NEWS.d/next/C API/2019-12-30-10-43-52.bpo-39164.WEV0uu.rst
Outdated
Show resolved
Hide resolved
This adds a new function named _PyErr_GetExcInfo that is a variation of the original PyErr_GetExcInfo taking a PyThreadState as its first argument. That function allows to retrieve the exceptions information of any Python thread — not only the current one.
This comment has been minimized.
This comment has been minimized.
Failure looks unrelated |
This comment has been minimized.
This comment has been minimized.
test_ttk_guionly failed twice on Azure Pipelines "Tests / Ubuntu":
|
3430c55
into
python:master
8 of 9 checks passed
8 of 9 checks passed
bedevere/news
News entry found in Misc/NEWS.d
This comment has been minimized.
This comment has been minimized.
Thanks @jd, I merged your PR. I made minor changes on your commit message. |
This comment has been minimized.
This comment has been minimized.
Thank you @vstinner |
PyErr_GetExcInfo(PyObject **p_type, PyObject **p_value, PyObject **p_traceback) | ||
{ | ||
PyThreadState *tstate = _PyThreadState_GET(); | ||
return _PyErr_GetExcInfo(tstate, p_type, p_value, p_traceback); |
This comment has been minimized.
This comment has been minimized.
ammaraskar
Jan 15, 2020
Member
Should this have a return
? I think this introduced a warning on the windows build: https://github.com/python/cpython/runs/390021032#step:3:572
This comment has been minimized.
This comment has been minimized.
petdance
added a commit
to petdance/cpython
that referenced
this pull request
Jan 17, 2020
This adds a new function named _PyErr_GetExcInfo() that is a variation of the original PyErr_GetExcInfo() taking a PyThreadState as its first argument. That function allows to retrieve the exceptions information of any Python thread -- not only the current one.
petdance
added a commit
to petdance/cpython
that referenced
this pull request
Jan 17, 2020
This adds a new function named _PyErr_GetExcInfo() that is a variation of the original PyErr_GetExcInfo() taking a PyThreadState as its first argument. That function allows to retrieve the exceptions information of any Python thread -- not only the current one.
petdance
added a commit
to petdance/cpython
that referenced
this pull request
Jan 17, 2020
This adds a new function named _PyErr_GetExcInfo() that is a variation of the original PyErr_GetExcInfo() taking a PyThreadState as its first argument. That function allows to retrieve the exceptions information of any Python thread -- not only the current one.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
jd commentedDec 30, 2019
•
edited
This adds a new function named _PyErr_GetExcInfo that is a variation of the
original PyErr_GetExcInfo taking a PyThreadState as its first argument.
That function allows to retrieve the exceptions information of any Python
thread — not only the current one.
https://bugs.python.org/issue39164