Skip to content

bpo-43270: Remove private _PyErr_OCCURRED() macro #24579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2021
Merged

bpo-43270: Remove private _PyErr_OCCURRED() macro #24579

merged 1 commit into from
Feb 19, 2021

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 19, 2021

Remove the private _PyErr_OCCURRED() macro: use the public
PyErr_Occurred() function instead.

CPython internals must use the internal _PyErr_Occurred(tstate)
function instead: it is the most efficient way to check if an
exception was raised.

https://bugs.python.org/issue43270

Remove the private _PyErr_OCCURRED() macro: use the public
PyErr_Occurred() function instead.

CPython internals must use the internal _PyErr_Occurred(tstate)
function instead: it is the most efficient way to check if an
exception was raised.
@vstinner vstinner merged commit a486054 into python:master Feb 19, 2021
@vstinner vstinner deleted the remove__pyerr_occurred branch February 19, 2021 14:08
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Remove the private _PyErr_OCCURRED() macro: use the public
PyErr_Occurred() function instead.

CPython internals must use the internal _PyErr_Occurred(tstate)
function instead: it is the most efficient way to check if an
exception was raised.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants