You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add PyErr_DisplayException(exc) as replacement for PyErr_Display(typ, exc, tb) #102755
PyErr_Display is in the stable ABI but it is not documented. PyErr_DisplayException will therefore need to be in the stable ABI as well (and documented).
Activity
pythongh-102755: Add PyErr_DisplayException(exc)
pythongh-102755: Add PyErr_DisplayException(exc)
gh-102755: Add PyErr_DisplayException(exc) (#102756)
Merge branch 'main' into inlinecomp2
pythongh-102755: fix refleak
gh-102755: fix refleak (#102826)
encukou commentedon Mar 20, 2023
The new function should only be available in the 3.12+ limited API, see: https://devguide.python.org/developer-workflow/c-api/#adding-a-new-definition-to-the-limited-api
Users who
#define Py_LIMITED_APIexpect that their compiled extensions will work with older versions of Python.Also, the PR removed all tests for
PyErr_Display. Would it be possible to add at least a small smoke-test back, to ensure it continues to work?pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…
gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover Py…
pythongh-102755: Add PyErr_DisplayException(exc) (python#102756)
pythongh-102755: fix refleak (python#102826)
pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…
pythongh-102755: Add PyErr_DisplayException(exc) (python#102756)
pythongh-102755: fix refleak (python#102826)
pythongh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests co…